WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP-dTree] Postcount bug with sub-categories? (2 posts)

  1. KaFu
    Member
    Posted 5 years ago #

    Hello,

    like already said in my previous post, great plugin :). Because this a totally different topic i decided to create a second post.

    There seems to be a bug with postcount in categories.

    I utilize sub-categories in my blog for sorting, this seems to mess up the postcount.

    Cat-Level1=>Cat-Level2=>Cat-Level3-a=>Post1
    Cat-Level1=>Cat-Level2=>Cat-Level3-a=>Post2
    Cat-Level1=>Cat-Level2=>Cat-Level3-b=>Post1
    Cat-Level1=>Cat-Level2=>Cat-Level3-b=>Post2

    Posts are only allocated to last category.

    Total Postcount should be 4, but what I get is

    Cat-Level1 (8)
    Cat-Level2 (4)
    Cat-Level3-a (2)
    Cat-Level3-b (2)

    Maybe you could add a DISTINCT by ID somewhere in the code? Something in that direction.

    Example can be seen on my blog http://www.funk.eu ,category 1.General

    Again, thanks a lot for your efforts on this great plugin and
    Best Regards

  2. whypy
    Member
    Posted 4 years ago #

    Hello KaFu,
    I have the same problem on my website http://www.photomatisme.fr .
    I see on your blog that you found the solution. Can you help me?
    Thank you in advance for your help

Topic Closed

This topic has been closed to new replies.

About this Topic