Search.php Templates for different post types
Currently working on a websites that has a number of different search forms. The search’s include:
- General site search – filters through posts and pages
- Course search – filters through all posts that are of the custom post type ‘courses’.
As you can imagine, what information needs to be shown on the general site search results is different to that of the course search.
Is there any way to have perhaps a template that can be called for each type of search to ensure only the relevant information is shown?
All suggestions are appreciated.
- The topic ‘Search.php Templates for different post types’ is closed to new replies.