title: Wordpress custom search results page
body: <p>Im trying to create a custom search results page that search's not only titles but through custom fields as well.
  I've been going through the "create a search page" page in the codex but for some reason the search results done use the new <strong>searchpage.php</strong> code.</p>
  
  <p>What I've done is create the searchform.php page with the following code:(Please notice i've added a page_id=8057 because i've added a page using the new search template.)</p>
  
  <pre><code>    &lt;form role="search" method="get" id="searchform" action="&lt;?php echo home_url( '/' ); ?&gt;?page_id=8057"&gt;
    &lt;div&gt;&lt;label class="screen-reader-text" for="s"&gt;Search for(custom):&lt;/label&gt;
      &lt;input type="text" value="" name="s" id="s" /&gt;
      &lt;input class="sprites" type="submit" id="searchsubmit" value="Search" /&gt;
    &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And i've created the searchpage.php with the default code the codex gives me:</p>
  
  <pre><code>&lt;p&gt;Search Results:&lt;/p&gt;&lt;BR&gt;
  &lt;?php get_search_form(); ?&gt;
         &lt;?php
  global $query_string;
  
  $query_args = explode("&amp;", $query_string);
  $search_query = array();
  
  foreach($query_args as $key =&gt; $string) {
      $query_split = explode("=", $string);
      $search_query[$query_split[0]] = urldecode($query_split[1]);
  } // foreach
  
  $search = new WP_Query($search_query);
  ?&gt;
  &lt;?php
  global $wp_query;
  $total_results = $wp_query-&gt;found_posts;
  ?&gt;
  </code></pre>
  
  <p>I still haven't made adjustments for the code and query but i'd like to solve first the problem that the search form aint showing me the searchpage.php results but linking to the default search results page.
  For example after i done a search i receive this url:</p>
  
  <pre><code>http://localhost/?s=mysearchquery
  </code></pre>
  
  <p>Any idea's how to get this starting?</p>
  
  <p>Thank you</p>