How to display random post on WordPress

Dynamic websites always attract and keep users engaged. Displaying random posts on page refresh gives a sense that your site is rich in content. Randomise posts also allow users to discover new articles they would not have thought about in the search topic. This article shows you how to use the Random Post on Refresh plugin to display random posts on WordPress pages.

Installing Random Post on Refresh Plugin for WordPress

To install and configure Easy Appointments Plugin, follow these steps:

  1. Log in to your WordPress site with an administrator account.
  2. On the Dashboard in the left sidebar, click Plugins, and then click Add New:

  3. Search for “Random Post on Refresh” click Install, and then click Activate the plugin:

  4. To display the random post on a page, select and edit the page:

  5. Add the “[random_post_on_refresh]” short code on the page and save the changes:

  6. This plugin requires the post to have a featured image. Set the featured image for the posts first to avoid any errors.
  7. Optionally, you can set which posts to show randomly:

    [random_post_on_refresh ids=”37,50,30”] // change the ids to match the post ID to be displayed.

More Information

For more information about the Random Post on Refresh plugin please visit: https://wordpress.org/plugins/random-post-on-refresh/

Get Managed WordPress Hosting

Article Details

Other Articles in This Category

Show More

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.