I'm working on a wordrpess site for improve search result. Now I want to fetch posts from a certain category & all child pages from one parent page.
If I set
post_parent => parent_id
then it only show all child pages, and not any posts(blog post). But I want to show child pages from given id && blog posts. like:
post_parent=>parent_id && post_type=>post&&category=>array(cats id).
Any suggestions on how to accomplish this
&
there do you mean you actually want two sets of post for two different conditions in one query? It doesn't work like that.