Theme Tip 12 – Featured Homepage Content Made Simple and Cool

by

in

If there’s one thing that the WordPress core could do a better job at it would be more flexible content templates and options for managing content on non-blog templates such as your typical website homepage.

Thankfully the WordPress ecosystem has come to the rescue and provided a wealth of plugins and code snippets to fill the void.

Take it from me – the simplest way to add little content pockets/panels/thingymajig’s is as follows:

  • Create a page in WordPress – add the content you would like to appear on your homepage – add as much style as you like – including images – go on – knock yourself out.
  • Install the Exclude Pages plugin. Read up on that bad boy and exclude the page you just created from your menus.
  • Then, install the Improved Include Page plugin.
  • Now you’ll need to give into your theme homepage template and remove your static content and replace it with a code snippet that looks a little like this:

[codesyntax lang=”php”]

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

[/codesyntax]

Replace the “316” number with your page number.

What you’ve just done is setup a little system that let’s you basically create pockets of content on your homepage template that pulls in content from any other page in WordPress. Simple eh? We think so. There’s lots of plugins out there that will let you feature page content via widgeted areas in your theme but none are as flexible as the solution I’ve just given you.

No go rock your website with this little bit of goodness.

Your welcome and I love you too.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *