title: Have wordpress search results on the same page
body: <p>I am trying to display the results of my custom post search in the page I am currently in.   I am posting back to the same page, here's my form:</p>
  
  <pre><code>&lt;form role="search" method="get" id="searchform-conferences" action="&lt;?php the_permalink();?&gt;"&gt;
      &lt;input type="text" name="search"  value="Enter keywords ..." onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"/&gt;&lt;br /&gt;
      &lt;input type="hidden" name="post_type" value="posttypeconference" /&gt;
      &lt;input type="submit" id="searchsubmit" value="Search" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Yet, whenever I submit the search, it comes up with a 404 even although the page url is the same one except with the search query, i.e. <code>mydomain.com/page_where_my_search_form_is.php?search=searchterm</code></p>