Support » Plugin: WordPress Popular Posts » Help with limiting post with shortcode

  • Resolved naijaremix

    (@naijaremix)


    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 to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Héctor Cabrera

    (@hcabrera)

    Hi @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

    (@naijaremix)

    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 Héctor Cabrera

    (@hcabrera)

    Recheck my comment from above 😛

    Thread Starter naijaremix

    (@naijaremix)

    Working now, is there a way I can remove the views in the listed posts?

    Plugin Author Héctor Cabrera

    (@hcabrera)

    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– to save yourself some time.

    If you have any other questions don’t hesitate to ask, OK?

    Thread Starter naijaremix

    (@naijaremix)

    Thanks so much.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.