How to Limit WordPress Search to Posts Only
The default WordPress search system searches for posts, pages, authors, files and media in the wp-uploads directory. Sometimes you may want to limit this search to posts only when developing a theme or when taking your site to the production. It’s a good practice to always limit the search results to posts only. If you …