background preloader

WordPress

Facebook Twitter

Improved Include Page. Download Improved Include Page Extract the zipped archiveUpload the file iinclude_page.php to the wp-content/plugins directory of your WordPress installationActivate the plugin from your WordPress admin 'Plugins' page.Include pages in your templates ising iinclude_page function or in your pages/posts using the shortcode syntax. How to use it After installing it, the plugin adds the function ´iinclude_page´: void iinclude_page(int post_id [,string params, boolean return = false]) The function takes three parameters: the id of the page to include (post_id) and an optional string (params) which contains the display options and an optional boolean (return) tells wether to return the content or display it on screen.

Example 1: basic usage If you wish to include the content of page number 4 insert the following code into your template file (eg. sidebar.php): or In order to avoid PHP errors you should use the function with the following syntax: Example 2: using optional parameter <? Parameters. Allow PHP in 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.

Image Formatr. Mini Loops.