I want to grab all posts from an author under category X. Right now, I am using 4 separate loops to do this for 4 different categories. Is there a better way to do this? query_posts

  • Do you want to display the results separated per category?
    – fuxia
    Jun 8, 2011 at 7:28

2 Answers 2


Have a look at the category parameters of WP_Query


Please take a look at this answer, exchange get_comments with get_posts and use the include argument to filter only the posts from the categories you need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.