How do I execute PHP in WordPress 3.2.1 pages, posts, widgets, etc?

I’ve been using the Exec-PHP plugin, but it’s no longer working with the latest update to WP.

Anyone else run into this problem and find a solution?

Related posts

Leave a Reply

3 comments

  1. You do not necessarily need to install a plugin, have a look at this idea of LxC, it worked for me with WP 3.5.1. ->PHP in WP Post without plugin

    You basically add a function to your theme which will execute the embedded php code. This function you then call before the post’s text gets filtered by WP, simple and effective 🙂