> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Displaying random post on WordPress

> Discover how to display random posts on WordPress using a post randomizer plugin.

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](https://hosting.com/hosting/platforms/wordpress-hosting/managed-wordpress-hosting/) 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](https://hosting.com/hosting/platforms/wordpress-hosting/managed-wordpress-hosting/) site with an administrator account.

2. On the **Dashboard** in the left sidebar, click **Plugins**, and then click **Add New**:\
   ![](https://static.hosting.com/kb/kb-wp-randompost-3.png)

3. Search for "*Random Post on Refresh*" click Install, and then click **Activate** the plugin:\
   ![](https://static.hosting.com/kb/kb-wp-randompost-2.png)

4. To display the random post on a page, select and edit the page:\
   ![](https://static.hosting.com/kb/kb-wp-randompost-5.png)

5. Add the "\[random\_post\_on\_refresh]" short code on the page and save the changes:\
   ![](https://static.hosting.com/kb/kb-wp-randompost-4.png)

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/](https://wordpress.org/plugins/random-post-on-refresh/)

## Related articles

* [Carousel Slider for WordPress](/docs/carousel-slider-for-wordpress)

* [CTA button shortcode on WordPress](/docs/cta-button-shortcode-on-wordpress)
