• Hi There!

    Came across your plugin when trying to display the most popular 5 posts (of a custom post type) of the past 7 days. I’ve installed Jetpack and your other plugin, BE Stats, to try to get this to work (yes, Jetpack stats are on and I can see views on CPTs). The shortcode I have right now is: [display-posts orderby="popular" post_type="scrum_term"] where scrum_term is my post type. The shortcode works when I pull out the “orderby” attribute, but obviously I need that in for it to work the way I need.

    I var_dumped the $listing query object around line 375 and I can see all the args getting passed in from the BE Stats plugin, so I’m not sure what the hang up is. Running have_posts() on the object returns false.

    Any chance you can take a look? Let me know if you need any more info.

    Thanks in advance,
    Emma

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    The only thing I can think of is that none of your “scrum_term” posts are in the 100 most popular pages of content on your site.

    BE Stats does not get the ranking for all content on your site, only the 100 most popular posts. You can change this using the be_stats_args (see here).

    BE Stats is not a good fit for large amounts of posts and/or long-tail results. A better approach, in my opinion, is to use share counts or comment count ([display-posts orderby=”comment_count”]

    Thread Starter Emma Edgar Valcq

    (@emmaee)

    Thanks for the response, Bill. ??

    This is a brand new site with only a few pages and no posts. 90% is the custom post type. According to Jetpack stats, 19 out of 22 of the most viewed pages/posts in the last 30 days are posts of my CPT. Any other ideas?

    Thanks,
    Emma

    Thread Starter Emma Edgar Valcq

    (@emmaee)

    Also discovered the BE Stats plugin was breaking Gravity Forms. (Sorry this is turning into a thread that might need to be on the other plugin…) Couldn’t click the buttons to add fields. No errors or anything in the dev tools console, which was super weird.

    Unfortunately, I really need to get this functionality going so I’m switching to a different plugin for this site. I’d still like to help you troubleshoot these issues I found, so if you have anything you’d like me to try, I can work with you on my local copy of this site.

    ??
    Emma

    Plugin Author Bill Erickson

    (@billerickson)

    That’s very strange. If you can, post any details you have on the issue here: https://github.com/billerickson/be-stats/issues

    The most likely issue is that something has changed in the Jetpack API, so the code needs to be updated. I don’t use BE Stats very often – the last real code change was in April 2013.

    But I don’t see how it would be breaking Gravity Forms.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Popular Posts Returns Nothing’ is closed to new replies.