On WordPress Single Install I have a script that adds pages with PHP code. This works. I use exactly the same code on WPMU but the "content" does not get through. It perfectly creates the pages but when I look in the page via wp-admin OR in the db directly the post_content is empty. Is the XMLRPC interface different? Does it filter out PHP tags? Anything Other?
Here is the code I use:
<member>
<name><![CDATA[description]]></name>
<value>
<string><![CDATA[<?php $o = "whatever"; include_once "bla.php"; ?>]]></string>
</value>
</member>
UPDATE: I found that entering PHP tags directly in pages ALSO removes the complete PHP lines...
And my first Google attempts found "There's a couple of threads on exec-php on the mu forums. I don;t think anyone ever got it to work in wpmu." SLIK I REALLY need it.......
yes - php tags are filtered on WPMU for security reasons.
Can I "do not" kses for just 1 user: me and keep it on for all other users?
ok... this plugin: http://www.binh.name/less-filter-plugin-for-wordpress/
did the trick for the single user where i activated it for.
at least... when entering php directly in the textbox unfortunately it does not disable the filter for xmlrpc added pages somehow, so does anyone know what filter to add to this plugin to enable it?
If anyone every references this. I hopped over to another solution. I use XMLRPC to create the pages and retrieve the pageids in my local database.
I then loop the new pageids and do direct sql calls to the wp database to update the post_content entries with whatever php entries directly.
works. ok, done. next.
correction. works not completely yet.
The php show e.g. echo vars etc... however...... the include does not include. I have a simple include that only does "echo test" but no statement is shown. I think it still skips the includes...
sigh... how many hours is this going to take me... 23 hours already...