Display posts from an author using search parameters (not author template/query_posts)

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:

/?s=+&author_name=username

Leave a Comment