WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Allow PHP in Posts and Pages

Allow PHP in posts and pages allows you to add php functionality to WordPress Posts and Pages

Allow PHP in posts and pages adds the functionality to include PHP in your WordPress posts and pages by adding a shortcode [php] your code [/php]

This plugin attempts to strip away the automatically generated wordpress <p> and <br/> tags but still allows the addition of your own <p> and <br/> tags using a form of BBcode items such [p][/p] and [br /]

You can also save your most used bits of code as snippets for use across multiple pages.

With Version 2.2, the older tag replacement system has been revamped, hopefully reducing the need to escape some characters for example: [ and ] that shouldnt be changed < and >

With Version 2.3 comes an experimental advanced filter feature which allows you to use standard php code while taking advantange of variables thoughout the entire post content, and functions, as well as no pesky tag replacement.

With Version 3 comes entirely re-written code with support for code snippets being used in conjunction with the advanced filter feature as well as a class variable to share variables between saved snippets and code blocks. This version also comes with UI updates.

Requires: 2.5 or higher
Compatible up to: 3.5.2
Last Updated: 2013-4-30
Active Installs: 50,000+

Ratings

4 out of 5 stars

Support

0 of 4 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,3,3
100,2,2
100,1,1
100,1,1
100,1,1
0,5,0 100,1,1 100,1,1 100,1,1 100,2,2
100,2,2 0,2,0
55,11,6
33,3,1
0,1,0 0,1,0
100,2,2 100,1,1
100,2,2 0,1,0
100,7,7 100,2,2
100,1,1
0,1,0
100,4,4
25,4,1
100,1,1
0,1,0
100,1,1
100,1,1
50,2,1