Title: Help with limiting post with shortcode
Last modified: March 5, 2021

---

# Help with limiting post with shortcode

 *  Resolved [Naijaremix](https://wordpress.org/support/users/naijaremix/)
 * (@naijaremix)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/help-with-limiting-post-with-shortcode/)
 * Hello please I need help on how to make the post list five popular posts in the
   last 24hours with shortcode.
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhelp-with-limiting-post-with-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/help-with-limiting-post-with-shortcode/#post-14140698)
 * Hi [@naijaremix](https://wordpress.org/support/users/naijaremix/),
 * You can use the `range` parameter to get the most popular posts from the last
   24 hours (see **Settings > WordPress Popular Posts > Parameters** for more.)
 * For example:
 * `[wpp range='last24hours' limit=5]`
 *  Thread Starter [Naijaremix](https://wordpress.org/support/users/naijaremix/)
 * (@naijaremix)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/help-with-limiting-post-with-shortcode/#post-14140708)
 * Thanks when I use that, it shows almost 20 post at once, how can I reduce the
   number of posts to 5 or less thanks
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/help-with-limiting-post-with-shortcode/#post-14140716)
 * Recheck my comment from above 😛
 *  Thread Starter [Naijaremix](https://wordpress.org/support/users/naijaremix/)
 * (@naijaremix)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/help-with-limiting-post-with-shortcode/#post-14140722)
 * Working now, is there a way I can remove the views in the listed posts?
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/help-with-limiting-post-with-shortcode/#post-14140759)
 * Yes, you can use the `stats_views` parameter to show (1) or hide (0) the views
   count:
 * `[wpp range='last24hours' limit=5 stats_views=0]`
 * You’ll want to have a look at the list of available parameters –[as I suggested earlier](https://wordpress.org/support/topic/help-with-limiting-post-with-shortcode/#post-14140698)–
   to save yourself some time.
 * If you have any other questions don’t hesitate to ask, OK?
 *  Thread Starter [Naijaremix](https://wordpress.org/support/users/naijaremix/)
 * (@naijaremix)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/help-with-limiting-post-with-shortcode/#post-14140831)
 * Thanks so much.

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

The topic ‘Help with limiting post with shortcode’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [time range](https://wordpress.org/support/topic-tag/time-range/)

 * 6 replies
 * 2 participants
 * Last reply from: [Naijaremix](https://wordpress.org/support/users/naijaremix/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/help-with-limiting-post-with-shortcode/#post-14140831)
 * Status: resolved