Pin Me

Using the Featured Post Wordpress Plugin

written by: Amanda Presley•edited by: Michele McDonough•updated: 11/11/2010

Want to rotate your posts on WordPress? Try the Featured Post plugin. It will pull posts from different categories and display them in the Featured Post block. The tutorial below will show you how to install the plugin and use it.

  • slide 1 of 1

    The Featured Post WordPress Plugin is a plugin that will pull posts from different categories to display on your homepage. This plugin is great because your homepage will change often. The content on the homepage will change every time someone visits it. You can set up the options for the plugin. This tutorial will show you how to install and use the Featured Post WordPress Plugin. You will need to download the Featured Post plugin to get started. You can download the plugin from here.

    Installing the Featured Post WordPress Plugin

    To install it, you will first need to unzip it. After you have unzipped it, upload the Featured Post plugin to the Plugins folder of WordPress. It needs to go in the wp content/Plugins folder.

    Now you will need to login to your WordPress Admin Panel. Once you have logged in, click the Plugins link at the top right side of your Admin Panel. You will need to locate the Featured Post plugin and activate it. To activate it, tick the field beside the plugin and click the Activate button. Your Featured Post plugin is now installed and ready to be used.

    How to Use the Featured Post Plugin

    Now I will show you how to use the Featured Post Plugin. Click the Settings link at the top of the page. In the sub-categories you will see the Featured Post link. Click that link to access the Featured Post panel. In this panel you will see the different options. You can enter the number of posts that you want displayed in the top field. The next field is the title of the Featured Post box. You can enter what you want in this field. The next field is the Display Options. Choose whether you want a piece of the content to show or all of it.

    On the right side of the page, you will see the list of categories that you have on your WordPress site. You will need to check the categories that you want the plugin to pull the post from. If you want it to pull it from all of the categories, click all of them. If not, click the categories that you do want the plugin to pull from. Then click the Update button at the bottom of the page to save your updates.

    To insert the php code into your template, go to the Design link in your admin panel and select the Theme Editor link. On the right side pane, there will be a file named “index.php”, this is your main template page file. When you click on it, the textbox will be filled with the contents of the file. You’ll need to add the function to show the featured post on this page. Below is an example:

    <?

    if ( function_exists('show_featured_post') )

    show_featured_post('<span class="container">','</div>');

    ?>

    Basically, the if statement just checks if the function exists. Then show_featured_post() function is called. The first two arguments the function takes are what html is displayed before the output of the function, then the next argument is what follows the output of the function. The next two arguments are whether the function should always show the featured post and uses a Boolean true false option. And the final argument is the Category ID.