WordPress.org

Ready to get started?Download WordPress

Forums

Count Posts in a Category, Tag, or Custom Taxonomy
[resolved] [Plugin: Count Posts in a Category/Tag/Custom Taxonomy] Future posts (12 posts)

  1. TXALLDAY
    Member
    Posted 1 year ago #

    Is there a way for the count to include future posts of a category? You dont have to make it an update if you could just tell me what to edit in the plugin, I would gladly do so.

    Thanks

    http://wordpress.org/extend/plugins/count-posts-in-a-category/

  2. Luke Mlsna
    Member
    Plugin Author

    Posted 1 year ago #

  3. TXALLDAY
    Member
    Posted 1 year ago #

    Awesome!!! Thanks

  4. Luke Mlsna
    Member
    Plugin Author

    Posted 1 year ago #

    No problem! A rating is always appreciated if you like the plugin :)

  5. TXALLDAY
    Member
    Posted 1 year ago #

    For sure, I got you bro.

  6. TXALLDAY
    Member
    Posted 1 year ago #

    Im having trouble with this modification. The post count only returns 6 when in reality there are a total of 18 posts in that category, 4 future and 14 published. Do you have any idea what might be the cause of this problem? thanks!

  7. Luke Mlsna
    Member
    Plugin Author

    Posted 1 year ago #

    It doesn't count future/scheduled posts by default. If you want that functionality, you need to paste in the code from this page, and use [cat_count_future id="99"] where 99 is the category ID.

    Are you doing this already? Are you sure the pasted in code hasn't been reverted to the default version?

  8. TXALLDAY
    Member
    Posted 1 year ago #

    Yes i did copy and paste that code as well as use the new shortcode and i checked and it hasnt been reverted to default either.The counter stops at 6 even when im doing future posts only and also when both future and published.

  9. Luke Mlsna
    Member
    Plugin Author

    Posted 1 year ago #

    Can you change the id="" argument to a different category ID and see if it still says 6? Also double check that you're using the right cat_ID if you haven't done that yet.

  10. TXALLDAY
    Member
    Posted 1 year ago #

    Ok I changed the id from 1 to 72 and i counter stops when it gets to 6 and yes I am using the right cat_ID. 1 is the featured cat and 72 is the blog cat on my site so those are correct.

  11. Luke Mlsna
    Member
    Plugin Author

    Posted 1 year ago #

    Must have gotten bugged with the WP 3.5 update. I'll take a look at the code.

  12. TXALLDAY
    Member
    Posted 1 year ago #

    Ok thanks a lot

Topic Closed

This topic has been closed to new replies.