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.

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

2 Answers 2

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

 
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.