• I would like to modify the results of the tag query e.g.:

    /tag/dog

    so that it also included posts that are in the category “dog”

    If I try to add the category into the pre_get_posts filter when a tag query is being made it produces a query that requires both the tag and category to be matched whereas I want either the category or tag.

    Any ideas?

    Thanks for any help.

    Julian

Viewing 2 replies - 1 through 2 (of 2 total)
  • It looks like this thread has an answer to your question.

    http://wordpress.org/support/topic/exclude-categories-from-archives?replies=5

    If that’s not what you meant (or if it’s not working for you) just let me know and I can try to help further!

    A minute ago I had a link to a similar problem. I think it said something like…

    /tag/dog,cat

    …would produce results that were either in tag dog or cat.

    And…

    /tag/dog+cat

    …would produce results that were tagged BOTH cat and dog.

    So maybe one of these work…

    /tag/dog+cat=dog
    /tag/dog,cat=dog
    /tag/dog&cat=dog

    Post back if you found a solution! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modify tag query to also includes results from a category’ is closed to new replies.