Allow PHP in Posts and Pages

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

Author:Hit Reach (profile at wordpress.org)
WordPress version required:2.5
WordPress version tested:3.5.1
Plugin version:3.0.4
Added to WordPress repository:27-10-2010
Last updated:30-04-2013
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:82
Rated by:23
Plugin URI:http://www.hitreach.co.uk/wordpress-plugins/a...
Total downloads:214 077
Active installs:10 000+
plugin download
Click to start download

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.