limit search results


Change Number of Search Results

To change the number of search results listed add the following snippet right above the if(have_posts) statement.  

So it would look like this:


Limit Search Results to Blog Posts Only

The following snippet will limit search results to display blog posts only on your search results page. Copy and paste the following into functions.php

Source: http://www.wpbeginner.com/wp-tutorials/how-to-exclude-pages-from-wordpress-search-results/