Improved Include Page Plugin WordPress, Download, Install
Improved Include Page plugin allows you to include the content of a page in a template file or a post/page (via a shortcode) with several options.
Improved Include Page Download Now
(If the link does not work)↓
Originals Link WordPress.org
https://wordpress.org/plugins/improved-include-page/
How to Install Improved Include Page Plugin, Manually
- Download Improved Include Page
- Extract the zipped archive
- Upload the file ‘iinclude_page.php’ to the ‘wp-content/plugins’ directory of your WordPress installation
- Activate the plugin from your WordPress admin ‘Plugins’ page.
- Include pages in your templates using ‘iinclude_page’ function or in your pages/posts using the shortcode syntax.
How To Use
Once installed, the plugin adds the function ‘iinclude_page’:
void iinclude_page(int post_id [,string params, boolean return = false])
The function takes three parameters:
1. the id of the page to include (‘post_id’)
2. an optional string (‘params’) which contains the display options
3. an optional boolean (‘return’) tells whether to return the content or display it on screen.
Example 1: using Shortcode API in posts or pages
You can include a page’s content in a page/post using the syntax:
[include-page id="123"]
or
[include-page id="3" displayTitle="true" displayStyle="DT_TEASER_MORE" titleBefore="<h3>" titleAfter="</h3>" more="continue»"]
Example 2: basic usage in templates
If you wish to include the content of page number ‘4’ insert the following code into your template file (e.g. sidebar.php):
<?php iinclude_page(4); ?>
or
<?php echo iinclude_page(4, null, true); ?>
In order to avoid PHP errors if the plugin is disabled, you should use the function with the following syntax:
<?php if( function_exists( 'iinclude_page' ) ) iinclude_page( 4 ); ?>
Example 3: using optional parameters in templates
You can also display the page title using the following code:
<?php iinclude_page( 4, 'displayTitle=true&titleBefore=<h2 class="sidebar-header">' ); ?>
Parameters
The current version supports the following parameters:
displayTitle (boolean)
toggle title display
titleBefore/titleAfter (string)
string to display before and after the title
displayStyle (integer constant)
one of the following:
- `DT_TEASER_MORE` – Teaser with ‘more&’ link (default)
- `DT_TEASER_ONLY` -Teaser only, without ‘more’ link
- `DT_FULL_CONTENT` – Full content including teaser
- `DT_FULL_CONTENT_NOTEASER` – Full content without teaser
more (string)
text to display for the ‘more’ link
Video
Plugin Not Working?
If any errors or problems with the plug-in then write comments.