title: wordpress Custom search page returning all post type
body: <p>have written a custom wordpress search template and wish to retrieve only 'post' type posts and not any page or any custom post type. </p>
  
  <p>The issue is that the query is returning all posts type (and pages) .. following is the query arguments .</p>
  
  <pre><code>$pageContent = new WP_query();
  $pageContent-&gt;query(array('s'=&gt; $query, 'posts_per_page' =&gt; -1, 'post_type' =&gt; 'post'));
  </code></pre>
  
  <p>Another issue (not very important at the moment), the next_posts_link() and previous_posts_link() do not seem to show any link for pagination as well.</p>
  
  <p>Any help appreciated.</p>