WordPress.org

Ready to get started?Download WordPress

Forums

Search results by page template (1 post)

  1. mwelfare
    Member
    Posted 2 years ago #

    Hi.

    I am currently developing a site which is focused around the search functionality.

    A user could search for a book name, a module name, a course name or a university.

    On the results page I want to display the results in separate sections - so if there search is 'Marketing', it will show up books for marketing, modules for marketing and courses for marketing.

    I see this as saying 'if result is on a page using universities.php template, then show results in the universities section'. However, I am struggling to understand how to put this in the code.

    I would appreciate any guidance anyone can give me

    Regards,

    Mark

    Below is my current code:

    http://pastebin.com/79vKrzbs

Topic Closed

This topic has been closed to new replies.

About this Topic