WordPress.org

Support

Support » Themes and Templates » Search.php Templates for different post types

Search.php Templates for different post types

  • Currently working on a websites that has a number of different search forms. The search’s include:

    1. General site search – filters through posts and pages
    2. 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.
Skip to toolbar