WordPress Popular Posts
[resolved] No results. Db tables empty (4 posts)

  1. davebizarro
    Posted 3 years ago #

    I'm trying to display the most viewed posts.

    I used:
    <?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("range=weekly&order_by=views"); ?>

    But, It gives 0 results. I see this plugin uses 2 additional tables but they are always empty. (I checked the plugin is active).
    So I don't know how fix it to get working.

    Any clue?
    Best regards,


  2. davebizarro
    Posted 3 years ago #

    Checked again and works ok.
    The other question is how to remove the comments counter and display the post's title only.


  3. Hector Cabrera
    Plugin Author

    Posted 3 years ago #

    Hi Dave,

    Did you check the FAQ yet?

    I'm getting "Sorry. No data so far". What's up with that?
    There are a number of reasons that might explain why you are seeing this message: no one has seen or commented on your posts/pages since WordPress Popular Posts activation, you should give it some time; your current theme does not have the wp_header() tag in its <head> section, required by my plugin to keep track of what your visitors are viewing on your site; WordPress Popular Posts was unable to create the necessary DB tables to work, make sure your hosting has granted you permission to create / update / modify tables in the database.

  4. davebizarro
    Posted 3 years ago #

    Hi Héctor.
    It works now without doing anything more, checking FAQ I didn't notice that "WordPress Popular Posts is not counting my own visits" when logged in.

    And for remove comments count, I checked FAQ included in WordPress settings.

    So, finally get to display a list order by views and without comments, for that I used:
    <?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("range=weekly&order_by=views&stats_comments=0"); ?>

    Marking as [SOLVED].

    Many thanks Héctor.
    Best regards,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.