Exclude posts with certain tags in category archive


When we click a category link we find all posts under that category. I would like to hide posts from specific tag within that category, and to show a link which enable us to show the posts on that tag (which was hidden) within category. With jQuery and tabs I can achieve this, but there is a problem with pagination. So I need to find another way.

Example: We have 10 posts; 5 with Category A and 5 with Category B.

Of those, 3 posts have Tag C (2 from Category A and 1 from Category B).

When I click category A will show 3 posts (hidding the two tagged ‘C’) and afterwards (when I’m in category page) if I click Tag C it will show 2 posts (not 3, because 1 post has category B).

Is this possible?

, user24903 8 months 0 Answers 79 views 0

Leave an answer