=== Improved Include Page === Contributors: vtardia Tags: content, pages Requires at least: 1.5.3 Tested up to: 2.3.2 Stable tag: 0.4.2 Improved Include Page plugin allows to include the content of a static page in a template file with several options. == Description == Improved Include Page is an expanded version of the original Include Page developed by Brent Loertscher and it was developed to add some features I needed. ### Key Features - page title display with optional HTML code, - content display with different styles (full, teaser, custom ‘more’ link), - Wordpress filters applied to both the content and the title. ### Version notes (0.4.2) This version fixes a bug that triggers an error when used with some content filter: the `$page` global variable is backed up and then restored before returning. ### Version notes (0.4.1) This version contains a bug fix by [Jesse Plank](http://www.funroe.net/): resolves a compatibility problem with the plugin [EventCalendar](http://blog.firetree.net/2005/07/18/eventcalendar-30/). == Installation == 1. Download Improved Include Page 2. Extract the zipped archive 3. Upload the file `iinclude_page.php` to the `wp-content/plugins` directory of your Wordpress installation 4. Activate the plugin from your WordPress admin 'Plugins' page. 5. Make use of the function in your template. ### How to use it After installing it, the plugin adds the function ´iinclude_page´: void **iinclude_page**(int post_id [,string params]) The function takes two parameters: the id of the page to include (`post_id`) and an optional string (`params`) which contains the display options. #### 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): In order to avoid PHP errors you should use the function with the following syntax: #### Example 2: using optional parameter You can also display the page title using the following code: '); ?> #### Parameters The current version supports the following parameters:
DT_TEASER_MORE - Teaser with ‘more’ link (default)DT_TEASER_ONLY -Teaser only, without ‘more’ linkDT_FULL_CONTENT - Full content including teaserDT_FULL_CONTENT_NOTEASER - Full content without teaser