Modify Taxonomy pages to exclude items in child taxonomies

Posted by Prem Tiwari | Updated on

I know this is an old question, but it is a bit confusing and hopefully will help someone. The reason that $query->set doesn’t work is because the query has already been parsed and now we need to also update the tax_query object also. Here is how I did it:


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