Combine results of multiple WP_Query to resemble single WP_Query

Posted by Prem Tiwari | Updated on

I cannot really see doing this than to run a couple of queries here, one per category. We will need to be clever here to avoid a lot of unnecessary work.

Lets look at the code; (which I will comment to ease the process of understanding)

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers