title: Wordpress: How to remove pages from search results
body: <p>I've got a Wordpress based website and I'd just like to remove pages from search results. Of course I can't just do something like <code>if( is_page() ) { // don't do anything; }</code> because it would still count as a result and so it would affect pagination etc...</p>
  
  <p>So, maybe some parameter in the search query? But the thing is, the search query is written in the wordpress core so I can just edit it?</p>