I've customized a theme and am having some problems with search results using multiple-word queries. Site is live at www.abetterworldbydesign.com
Searching for a single word works as expected.
Searching for multiple words that should have returned results shows blank results.
Oddly enough, manually changing the "+" character in the URL to "&" displays the results correctly but only shows the first word in the header "Search results for:_".
My code in search.php for initializing WP_Query follows exactly the code listed in the codex. Full code for search.php on pastebin.
Code for searchform.php below.
<form id="searchform" name="searchform" method="get" action="<?php echo home_url(); ?>"> <div> <input type="text" id="s" name="s" /> <input type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'richwp' ); ?>" /> </div> </form>
+, anything you add on with an
&will get treated as a seperate query paramter. I'm not 100% sure though.. been a while since i've examined the search code.