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

Yeah, is there a way to add a search function that only searches through author profiles?

For example, if someone is searching for authors called John Smith, is there a way to have a search form that ONLY searches in author.php?

share|improve this question
possible duplicate of Extend WordPress search to include user search – kaiser Nov 2 '11 at 15:56
up vote 0 down vote accepted

You can use Relevanssi - Uncheck all boxes except for "Index and search your Authors" - see screenshot below.

Relevanssi Screenshot

share|improve this answer
That's awesome. Would that work with other fields aswell as the name field? Would it index authors by the "AIM" field for example? – Dean Elliott Nov 2 '11 at 15:08

The relevanssi option is fine if you do not need any other kind of search on your site. If you want to keep your normal search and have a separate user search, you could try doing something with free amr-users plugin that offers user list and user search. You define the data that is okay to have public in a list (from the use and user meta table, including data that other plugins may have created) and then there is a search option that will search just within that list

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.