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

Is there a way to retrieve a list of all the posts by an author using search (example: ?s&author=xxx)? I can't use query_posts or author template (don't ask why, take it as a condition). And it should be a public query (the filter in admin panel isn't good).

If isn't available by default as a search parameter, do you know how to add it smoothly through functions.php (without flooding WP with db queries or requests that slow it down).

share|improve this question
I found out a solution better than the one in the other topic. – MultiformeIngegno Feb 8 '13 at 12:35
Something like /?s=%20&author_name=username works, but if there's something that sets search term to none would be better (to not display "search results for ''). :) – MultiformeIngegno Feb 8 '13 at 12:36

This is what I was looking for:

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.