title: WordPress: How do I get all posts from $wp_query in the search results?
body: <p>I must be brain dead, I can't figure out how to get ALL posts from the <code>$wp_query</code> so that I can create a widget filter for the search results.</p>
  
  <p><code>$wp_query-&gt;posts</code> only gives me the posts that are going to be displayed in the list, so, if <code>posts_per_page</code> is set to 10, I only get 10 posts. I need them all so I can sort them and display a filter based on all posts from the search results.</p>
  
  <p>Any ideas?</p>