WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
[resolved] Help - Plugin Stopped Working No Code Modifications (15 posts)

  1. isserdude
    Member
    Posted 1 year ago #

    For some reason, my plugin started showing "Sorry. No data so far."....all that we've done is upgrade our plugins and upgrade wordpress when updates are available. Any help would be greatly appreciated!!

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

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there,

    Can you please check that your WPP database tables exist? If so, can you share your site's URL and your current popular posts settings?

  3. isserdude
    Member
    Posted 1 year ago #

    Hi,

    I have the following, which I believe are the correct tables for this plugin: wp_popularpostsdata and wp_popularpostsdatacache. They are full of data, 102 and 1247, respectively.
    The link to the blog posts is: http://tinyurl.com/9twkknw

  4. isserdude
    Member
    Posted 1 year ago #

    Got it resolved. I believe when upgrading wordpress or this plugin, the php code no longer worked...had to redo all of the code. and resort it by views.

  5. kosmikkreeper
    Member
    Posted 1 year ago #

    I get the same message! Check it out.
    When I go to settings, 24hr has the message, 7 days only has 2 out of 10 posts, 30 days only has 6 out of 10 posts.

    I,m not sure when to find the WPP database.

    Thanks!

  6. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Kosmikkreeper,

    Just checked your site and it seems you're using the wpp_get_mostpopular() template tag. Can you please share which parameters are being used with it (if any)?

  7. kosmikkreeper
    Member
    Posted 1 year ago #

    I just copied your short code in my sidebar.php. It was working fine until recently and I haven't added new stuff to my blog.

    I use
    <?php if (function_exists("get_mostpopular")) get_mostpopular(); ?>

    but I also tried
    <?php wpp_get_mostpopular(); ?>

    and I get the same message.

    As for parameters, I haven't touched them. Thumb source: featured image, Stylesheet: enabled, Data Tools, disabled.

  8. isserdude
    Member
    Posted 1 year ago #

    <?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("range=weekly&order_by=views&limit=5&stats_comments=0&cat='28,29,30,31,32,33'"); ?>

    This is what I am using -- as you can see, I am limiting it to certain categories.

    Good luck!

  9. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Hi guys,

    By default, this <?php wpp_get_mostpopular(); ?> will list the most commented post in the past 24 hours. If none of your posts have been commented within that time range, it'll display "Sorry, no data so far". I tested the function here and it seems to be working OK.

    If it's not the case, please let me know!

  10. kosmikkreeper
    Member
    Posted 1 year ago #

    Can I change the default to "all time"? That's what I need since I don't post often.

  11. kosmikkreeper
    Member
    Posted 1 year ago #

    I got you comment and yes it does show in the sidebar but I want it to show "all time" since I rarely get comments.

    Thanks!

  12. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, simply set range to all and that's it! Check isserdude's code posted above.

    Also, in your case maybe it'd be best to list posts by views count (just as isserdude did) since your site doesn't get that much comments.

  13. kosmikkreeper
    Member
    Posted 1 year ago #

    That worked thanks!

    Is there a way to remove to comments count after the title?

  14. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Yup, add stats_comments=0 to the parameter list and the comment count won't be displayed.

  15. kosmikkreeper
    Member
    Posted 1 year ago #

    cool thx!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic