WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im looking for a way to make tags a searchable object. To clarify, Im NOT trying to make the search engine search posts by looking at its tags, but I want tags to show up in the results just like a post. any help would be much apreciated

share|improve this question
up vote 1 down vote accepted

You'd have to do some modification to the generated SQL query via filters: posts_search, posts_join, posts_where.

Or you can just use the plugin Search Everything.

share|improve this answer

There isn't a way to do this "out of the box". However, what you could do is setup your search page to search for tags, categories, and other taxonomies before (or after) searching for posts. With a little effort you could intersperse them as well, but pagination would be tough -- your best bet is to have multiple search results areas, "Matching Tags", "Matching Categories", "Matching Posts", etc. See get_terms for everything you need to know to search taxonomies!


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.