So I have this issue regarding the loop within wordpress.
I have the following structure in my site:
- Parent Category 1
- Child category 1
- Child category 2
- Parent Category 2
- Child category 1
- Child category 2
-
- Post Cat2.1
-
- Post Cat2.2
- Post 1
- Post 2
In this case “Parent Category 2” has children category and posts. What I need to display in a “Parent Category Page” are the children categories and its posts without the children category posts.
I’ve looked everywhere but it seems I’ve been searching wrong, any help will be very appreciated
I think this can help:
also it’s posted Here
hope it can help you 🙂