$query_string plus category issues (3 posts)

  1. tdevine33
    Posted 4 years ago #

    I have my loop running so that if you're on the tag page (ie: http://www.website.com/tag/baseball) it will get all the posts using the global query string that also have a Category ID of 27, but it is returning things that aren't in the global query string.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    What is wrong with my code? ANY help is greatly appreciated!

  2. tdevine33
    Posted 4 years ago #

  3. I'm not completely sure, but I think the issue is that you have the loop inside of the if(is_tag()) check. Instead of doing that, try putting all of your code, except the if(is_tag()) inside of a file called tag.php

Topic Closed

This topic has been closed to new replies.

About this Topic