Count of question did not show in Parent Category if use the sub category.
Hi there, We have some Parent Category and each Parent Category has some Sub Category. When we post question then we will select the Sub category and there show the count number, how many question. But in the Parent Category still the Count is show zero. But in Parent Category, need to show the summation of count of all sub category under it. How can get this?
clairehar557ris Answered question
Your code is likely only looking at questions directly tagged to the Parent, rather than looking through it to the Subcategories. The easiest fix is to make the Parent count a sum of its children. Instead of just pullingĀ a static number, you need a quick function that says: “Parent Count = Sum(Subcategory A + Subcategory B + Subcategory C).”
clairehar557ris Answered question