• I’ve got 18 custom taxonomy categories and each one has a number of subcategories. I’m currently using a plugin called WP-dtree that works fine for my needs but it doesn’t show post counts and they’re unresponsive in the support forum…seems to be abandoned.

    I use wp user frontend for registered members to publish posts in those categories. I would like the subcategories specifically, not the parent categories, to show the total post counts associated with those subcategories.

    Colors
    Red (2)
    Blue (12)
    Green (22)
    Foods
    Candy (4)
    Steak (35)
    Fruit (0)

    The standard WordPress categories are not used in this case. These are custom taxonomies I set using Pods.

    Can anyone help point me in the right direction? Ideally, it’d be some code I could add to the already useful wp dtree plugin so I can just show the post counts as it’s set up.

    Thanks!

    • This topic was modified 3 years, 1 month ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • That plugin has some kind of cache system so please try to clear cache from that plugin setting and see if this solves your issue.

    Thread Starter Delana Taylor

    (@delanataylor)

    Thanks but that is not my question. It’s not a cache issue. I am asking HOW TO display the post counts for custom taxonomies at all.

    I do use the menu tree for that plugin because it shows the custom taxonomies I set up with pods.

    What I want is for the subcategories to display a post count for all posts in those subcategories, as noted above.

    Main Category: Food
    SubCategories: Apples (2) < 2 posts
    Oranges (15) < 15 posts
    Grapes (20) < 20 posts

    I still want the hierarchical menu tree. Just need to know how to make it where the posts are displayed.

    The plugin does not have this option. If there is a code snippet I can add to its functions or the overall site functions, that will work too.

    If there is a different plugin – free – that provides a clean, hierarchical menu tree that works with custom taxonomies and shows post counts, that works as well.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post Counts & Custom Taxonomies’ is closed to new replies.