Posts Tagged "search posts"

WordPress : How to have query search posts only

If you need to have your WordPress search only search posts for results, you can insert this code before the ‘if(have_posts()):’ line on search.php and it will do that for you. // search only posts global $wp_query; $args = array_merge(

Read More