0

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

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

Have a look at the category parameters of WP_Query

0

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, privacy policy and cookie policy

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