Search results by page template
-
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:
- The topic ‘Search results by page template’ is closed to new replies.