>
Download This Plugin | |
Download Elegant Themes | |
Name | PHP Code for posts |
Version | 1.2.0 |
Author | The Missing Code |
Rating | 100 |
Last updated | 2014-02-08 09:00:00 |
Downloads |
69369
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
PHP Code for posts plugin added 13 bytes of resources to the Home page and 27 bytes of resources to the sample Post page.
PHP Code for posts plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
PHP Code for posts plugins ads the following DB table(s) to your Wordpress blog database:Table name | Table size (in bytes) |
---|---|
wp_phppc_functions | 16384 |
PHP Code for posts allows you to add your own PHP code to posts, pages, custom post types (posts) and even sidebars without the need for custom templates
The plugin enables a shortcode and options page so you can add your code to the admin options page and then output it in your post using shortcodes
Multiple code snippets can be used on a post, and multiple posts can use the same code snippet, allowing you to re-use code.
The shortcodes can be used to also display plain HTML content, allowing you to add in iframe, objects, areas and other tags that are removed by the post editor
The plugin also contains a variable array which you can add variables to for use between snippets called $_var and is available though the global variable $PHPPC which is an object, so its $PHPPC->_vars[]
The plugin's shortcode can also accept parameters using the param attribute, the value should be a string of name=value pairs, separated by &s, for example [php snippet=2 param="var1=val1&var2=val2"]
. Within your snippet, the parameters are assigned a $_parameters array, for example echo $_parameters["var1"]; //outputs "val1"
The plugin's snippet editor now has better formatting, and supports AJAX saving for snippet updates (request by eneasgesing)
My special thanks go out to the following contributors: Vailou Gbr