Displaying random post on WordPress
Learn how to display random posts on WordPress pages. This article shows you how to use a post randomizer plugin to display random posts on WordPress pages.
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:
-
Log in to your WordPress site with an administrator account.
-
On the Dashboard in the left sidebar, click Plugins, and then click Add New:
-
Search for "Random Post on Refresh" click Install, and then click Activate the plugin:
-
To display the random post on a page, select and edit the page:
-
Add the "[random_post_on_refresh]" short code on the page and save the changes:
-
This plugin requires the post to have a featured image. Set the featured image for the posts first to avoid any errors.
-
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/
Related Articles
Updated 3 days ago