Page 1 of 1

include php in page/post - HOW?!?!?!

PostPosted: May 15th, 2011, 12:52 pm
by candy
Hii,

I am trying to no avail to include some php code directly in the post or page
Which plugin to use?

I tried exec-php and 2 others (grimp one of them) but they do not work anymore!
Using Wordpress 3.1.2!

Please help, this is a serious issue!

Thanks!

Re: include php in page/post - HOW?!?!?!

PostPosted: May 15th, 2011, 1:05 pm
by Cristián Lávaque
That's odd. I have Exec-PHP working fine with WP 3.1.2. :|

Remember to stay in the HTML tab of the editor, not the Visual one.

Re: include php in page/post - HOW?!?!?!

PostPosted: May 15th, 2011, 1:28 pm
by candy
ah, OK, now I know why ... stupid issues all over the place

In Wordpress, in Writting Settings, if you happen to have "WordPress should correct invalidly nested XHTML automatically" checked, it will NOT work with the php include!

Just in case someone falls over the very same issue ...

Re: include php in page/post - HOW?!?!?!

PostPosted: May 15th, 2011, 1:55 pm
by Cristián Lávaque
Thanks for the heads up!

Re: include php in page/post - HOW?!?!?!

PostPosted: May 15th, 2011, 4:09 pm
by candy
up up :-)