Hey, just wondering if this issue has come up again? I have followed the same steps as chaosratt describes above and got the same results.
I am able to use the PHP Execution plugin to pass the_permalink in the freeform field, which allows me to make the image a link to the post. Here is the contents of my freeform field: :
<a href="<?php the_permalink()?>" title="[title]"> <img width="[imgWidth|thumbnail]" height="[imgHeight|thumbnail]" alt="[title]" src="[imgUrl|thumbnail]" class="photoQexcerpt photoQLinkImg" /> </a>
This works beautifully and so my category archives can be a page of clickable thumbnails. However, when I post through a cronjob, I get this:
& lt;a href="” title=”Characters bw 057″& gt; <img width="120" height="186" class="photoQexcerpt photoQLinkImg" src="http://www.adammurphy.com/wp-content/thumbnail/2010_03/characters_bw_057.jpg" alt="Characters bw 057">
(I added a space to & lt; so it would show up on this board)
That first bit should be:
<a href="http://www.adammurphy.com/2010/03/31/characters-bw-057/" title=”Characters bw 057″>
So it's converting & lt; to < etc, there's this weird thing with "” as well as not executing the php.
A few uneducated guesses: PHP Execution plugin requires administrator permissions to run PHP code. Does the cronjob run with admin permissions? But if that was it, then why is it mangling the <? Another option: the_permalink only works in the loop. Is the cronjob somehow working outside the loop so there is no data in this variable? Forgive me if these are nonsense - I have a minimal understanding of wordpress internal workings.
You can see this in action at http://www.adammurphy.com/category/gallery/street-sketches/ I have left today's (30/03/10) post as the cronjob posted it. If I just update the post it rebuilds and fixes all of this, but that does slightly defeat the purpose of the whole cronjob thing.
Any thoughts greatly appreciated.
Thanks again for a fantastic plugin!
Adam.