Post of the Day

Download!

This simple plugin allows you to include a random rotating post anywhere in your site, via the use of a shortcode within a post or page, or by calling the do_shortcode() function on it anywhere in your theme. You choose the categories and set the interval and you’re done! You’ll automatically get a different randomly chosen post displayed at your chosen interval. This is great for testimonials.

Screenshot of Post of the Day plugin admin

Admin for Post of the Day plugin

Example:

Below, I’ve included the shortcode and set the category to “Code Snippets” and set the interval to 1 minute. So if you refresh every minute you should see a different post.

Usage:

  1. Upload the post-of-the-day folder to your plugins directory
  2. Activate the plugin in your Plugins panel
  3. You should see “Post of the Day” under your Settings. Edit the settings.
  4. Then, simply include this shortcode within a post or page: [potd]

Alternatively, if you want to include the post somewhere in your theme that is not in a post or page, just include the following in your php page:

<?php echo do_shortcode('[potd]');  ?>

Requirements:

This plugin has been tested with WordPress 3.2.1 and above.

Limitations:

This plugin currently does not render shortcodes for another plugin within the randomly displayed post.