I have one category named City and Second category Named Decease Inside City different cities will be there and inside Decease different decease will be there.
I will have posts having one city and more than one decease.
So what I want is when I click on One City I want to show all the decease belonging to this category.
So In detail with one city suppose 4 posts are there and all posts belongs to some decease So I need to find that how many posts are there having one category as this city. And then I need to find All the categories of all these posts and from that I need to find which categories parent category name is Decease. And then I need to show those categories.
How I should code this in wordpress in a nice manner? If some one has already spend some time on doing like this code then Kindly guide what will be good way to do this.
1 Answer