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.

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
add comment

1 Answer

This is what I was looking for:

/?s=+&author_name=username
share|improve this answer
add comment

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.