Title: Display limit posts randomly
Last modified: May 7, 2019

---

# Display limit posts randomly

 *  Resolved [wefin](https://wordpress.org/support/users/wefin/)
 * (@wefin)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/display-limit-posts-randomly/)
 * How can I display limit posts randomly.
    For example, I just want to display 
   5 posts only. But it should be random 5 posts whenever I refresh page.
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/display-limit-posts-randomly/#post-11507050)
 * You can use this shortcode: [display-posts posts_per_page=”5″ orderby=”rand”]
 * Here’s more information: [https://displayposts.com/2019/02/20/display-random-posts/](https://displayposts.com/2019/02/20/display-random-posts/)
 *  Thread Starter [wefin](https://wordpress.org/support/users/wefin/)
 * (@wefin)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/display-limit-posts-randomly/#post-11507125)
 * Hi.
    It works very well. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Display limit posts randomly’ is closed to new replies.

 * ![](https://ps.w.org/display-posts-shortcode/assets/icon-256x256.jpg?rev=2940963)
 * [Display Posts - Easy lists, grids, navigation, and more](https://wordpress.org/plugins/display-posts-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/display-posts-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/display-posts-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-posts-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-posts-shortcode/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [wefin](https://wordpress.org/support/users/wefin/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/display-limit-posts-randomly/#post-11507125)
 * Status: resolved