Support » Plugin: WordPress Popular Posts » Getting a paginated list of popular posts

  • Resolved jbx


    I need to display a paginated list of popular posts, ordered by most popular first. Unfortunately I cannot use the wpp_get_most_popular() template tag because there is no way to specify the offset (for the 2nd, 3rd, 4th pages etc.), it only has a limit parameter.

    Is there a custom query I can do myself in my template so that I get a normal loop of articles, ordered by views, and I display and paginate them normally like in a normal archive page?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hector Cabrera


    Hi there!

    Unfortunately, there’s no way to paginate Popular Posts. I do plan to add this feature some time in the future, though.

    Another user experimented with WPP and custom queries here and here, you might want to take a look.

    Hi Hector!

    Thanks for your quick reply. I had a look at those posts, and if I understood correctly what is happening in that case is a JOIN with the popularpostsdata when the URL has a specific GET parameter.

    In my case I want to override the query, maybe using WP_Query() because it is only on a specific page that I want this, without GET parameters.

    What I am not understanding however is where is it saying that the views should be over the last 24 hours, over the last 7 days, over the last 30 days or all time. Because I want the results to match the widget, otherwise it will be confusing for the user.

    I could have a look at what you’re doing in your widget and replicate that if its easy to understand. Where can I find that?


    Plugin Author Hector Cabrera


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Getting a paginated list of popular posts’ is closed to new replies.