Support » Plugin: WordPress Popular Posts » No results. Db tables empty

  • Resolved davebizarro


    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,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Checked again and works ok.
    The other question is how to remove the comments counter and display the post’s title only.


    Plugin Author Héctor Cabrera


    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.

    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,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No results. Db tables empty’ is closed to new replies.