Display all posts of Child Category For a Given Parent Category
-
Thanks for the excellent plugin.
I am looking for a help around Child category, so here is my structure.
Category 1
Child-Category of 1
Category 2
Child-Category of 2
Category 3
Child-Category of 3In a given post sidebar, I am able to list all posts that belong to that particular category.
I now also want to list the child-category posts under a separate widget title for a given parent category dynamically without specifying the category slug or number anywhere.For example :
If I am in a post say xyz.com/cat1/post-slug1
OR
xyz.com/cat1/child-cat1/post-slug2In the sidebar, I would want this structure in both the cases
Cat1
List of All posts of Cat1
^^^ This I have already achieved. I want to get this
Child-Cat1
List of All posts of Child-Cat1I have tried various things in your plugin but somehow I am not able to retrieve posts of child category for a given parent category.
Let me know if I was able to explain my query. I can do a video if you need more info from me.
- The topic ‘Display all posts of Child Category For a Given Parent Category’ is closed to new replies.