WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. davebizarro
    Member
    Posted 1 year ago #

    Hi
    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,
    Dave.

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  2. davebizarro
    Member
    Posted 1 year ago #

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

    Regards,

  3. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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,
    Dave.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.