WordPress.org

Ready to get started?Download WordPress

Forums

Search.php Templates for different post types (1 post)

  1. Oliver Farrell
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic