Query Posts Exclude Entire Category

Posted by Prem Tiwari | Updated on

Query Posts Exclude Entire Category
I recommend you use the pre_get_posts filter or ditch query_posts and use WP Query. That way you can easily use category__not_in (array) parameter and not mess any other loops up.


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

Related Questions & Answers