Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter hatherley

    (@hatherley)

    hil2_albums

    With an “s” at the end, yes.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Sorry, that was a typo.

    I’m going to need your help here to figure out what’s going on, so please is there any chance I can get a copy of your DB tables for testing? Specifically, I’d need wp_posts, wp_postmeta, wp_terms, wp_term_relationships and wp_term_taxonomies and WPP’s tables as well. I’d like to replicate the issue on localhost and understand what’s happening.

    Thread Starter hatherley

    (@hatherley)

    Care to email me at [email protected] and I’ll export something for you.

    Thread Starter hatherley

    (@hatherley)

    Wait, this might have to do with custom post statues. Something you don’t take into account. You only count “published” right?

    Plugin Author Hector Cabrera

    (@hcabrera)

    Yes, only status “published” are listed. Are you using a different status? Why?

    Thread Starter hatherley

    (@hatherley)

    For us, an album goes through different stages before being archived. To keep track of this we are using different statuses!

    Plugin Author Hector Cabrera

    (@hcabrera)

    Ah, that explains it. I never expected users to be interested in displaying posts with other status than “publish” hehe. Your case is an exception to the rule, of course.

    To “fix” it, you’ll have to alter the queries to include other statuses as well (see wordpress-popular-posts.php, lines 1428 to 1542).

    Hey Hector

    I work with Staffan @ hasitleaked.com

    I can fix those queries to include other post statuses as well. The question is, would you be interested in including them in future releases?

    Because, if not, we won’t be able to update the plugin, or we’ll have to patch every release of the plugin

    I think it could really help future-proof WP Popular Posts.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there,

    I may add a new filter on the DB query so you can customize it (eg. add your custom statuses and maybe other stuff as well) via functions.php. I’d need some time to figure out the best way to achieve that without breaking plugin’s functionality. I’ll let you guys know how it goes.

    In the meantime, I’ll set this topic as resolved.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘How does the plugin count views?’ is closed to new replies.