How to identify which template WordPress’s default search-form retrieves in my theme
The file that is displaying the search result, is the search.php file from the main theme folder. Below, you can find a working example that does the search of the default posts and pages: ‘post_type’ => array(‘post’, ‘page’) You can add a custom post in that array, for instance, if the custom post type has … Read more