Support » Fixing WordPress » How to Filter Tags from the_tags()

  • Hi,

    I use some tags for internal purposes that I would like to exclude globally from the_tags or any function that lists tags on the site.

    I have found some old solutions, but would like a modern one for 3.4.2.



Viewing 1 replies (of 1 total)
  • You’ll definitely need one of these tag parameters
    tag_id or tag__not_in
    I see 2 solutions:

    The correct one which is a bit too complex for me would involve adding a filter to all your queries, automatically removing (filtering) the tags from the query.

    Solution 2: manually excluding this tags from all your queries. By this I mean adding the negative tag query to all the queries in all your template files.

Viewing 1 replies (of 1 total)
  • The topic ‘How to Filter Tags from the_tags()’ is closed to new replies.