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).


1 Answer 1


This is what I was looking for:

  • For me this didn't work but /?s=&author=40 did work where 40 is the user ID.
    – leymannx
    Apr 15, 2019 at 16:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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