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.
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:
- Upload the post-of-the-day folder to your plugins directory
- Activate the plugin in your Plugins panel
- You should see “Post of the Day” under your Settings. Edit the settings.
- 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.
