Get Unique WordPress Post In Parent Category

I have a parent category and several child categories. I also have several posts that belong to the child categories. Each post can be belong to several categories. I want to know how to query the post table so when I want to show all posts in parent category, I’ll get all the post under the child categories. the result have to unique post.

The WordPress query should be able to handle it. Whether you’re using the query_posts or your own instance of WP_Query, simply pass the arguments. see following example

0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments