Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

2 Answers

up vote 2 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
add comment

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!

Cheers~

share|improve this answer
add comment

Your Answer

 
discard

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.