So right now my query looks like this:
$allsearch = &new WP_Query("s=$s&showposts=-1");
I understand what this query does and it works, but not I want to add the ability to query posts by
$s OR by multiple authors. I don't exclusively want posts that match the search or posts by the list of authors, but I want both together.
I want to build the argument according to this.
This is what I have so far:
$args = array ( 'author' => '1,2,3,4,5', 's' => $s, 'posts_per_page' => -1 ); $allsearch = &new WP_Query($args);
However I'm pretty sure that this query only returns posts that or both by the listed authors and match the search key.
All suggestions or guidance is appreciated.