Enhance your WordPress website using the Improved Include Page plugin

Ever wondered how you can provide someone with a sidebar text option without having to use widgets? Or maybe you’ve designed a slightly different home page and want to display more than one area of content? Vito Tardia’s Improved Include Page plugin is very useful for that and super easy to use.

Just like any other plugins, simply go to WordPress, download, install the plugin and activate it. Once activated you can use the following function in your templates:

<?php if(function_exists('iinclude_page')) iinclude_page(post_id); ?> 

Creating a sidebar text option without using widgets

If you take a look at the Aquattro Living website, you will see that the contact information appears at the bottom of the left hand side column on all pages. This information is likely to remain unchanged for a long time, but instead of inserting it in the template file and make it unmanageable by the client, all you need to do is create a new page called Contact Us Sidebar, exclude it from the main navigation and insert the include function in your sidebar.php template file.

Display more than one area of content on a template

Both West Coast Sightseeing and Ascent websites have three boxes of content on their home page. These different area of content are easy to create using this plugin. Simply create three new pages, called for example home col1, home col2, home col3 and display the content using the following code:

<div id="col1">
<?php if(function_exists('iinclude_page')) iinclude_page(1); ?>
</div>

<div id="col2">
<?php if(function_exists('iinclude_page')) iinclude_page(2); ?>
</div>

<div id="col3">
<?php if(function_exists('iinclude_page')) iinclude_page(3); ?>
</div>

You would of course change the post_id numbers to the number of your new pages and mark up the css to display the columns as you’ve stipulated in your design.

1 Comment so far

  1. Twitted by sorich87 July 13th, 2009 3:41 pm

    [...] This post was Twitted by sorich87 [...]

Leave a reply