I'm gonna post on the forum for the exec-php plugin, but thought I'd throw it out here first in case anyone has came across something similar...
Basically when WP posts a scheduled post (created from an imported XML file) it strips part of the php code.
If the post is edited in any way after the import it seems fine.
Here's an example:
Code:
Becomes:
It's removing <?php echo str_replace('> (and also encoding some stuff - which I don't think is a problem).
I've got a feeling it might be something to do with user permissions, but not sure really. Just gonna try with double quotes all the way, see if that makes a difference.
Any help gratefully appreciated! Cheers.
Basically when WP posts a scheduled post (created from an imported XML file) it strips part of the php code.
If the post is edited in any way after the import it seems fine.
Here's an example:
Code:
Code:
<?php
echo str_replace('>', ' width=200 height=200>', "<img src='[URL]http://farm4.static.flickr.com/3170/2987975152_e6bc375692.jpg[/URL]' alt='World's most famous zebra crossing'>");
?>
Code:
', ' width=200 height=200>', "<img src='[URL]http://farm4.static.flickr.com/3170/2987975152_e6bc375692.jpg[/URL]' alt='World's most famous zebra crossing'>");
?>
I've got a feeling it might be something to do with user permissions, but not sure really. Just gonna try with double quotes all the way, see if that makes a difference.
Any help gratefully appreciated! Cheers.