I’ve made a separate gallery page that only displays attachments from all the posts in the site. Now I’m trying to add a search field there that would filter down the attachments that match the given keyword.
The problem: how should I divert WP from using the default search.php (which is used now for normal post search) and use a custom gallery search result page instead (search_gallery.php)?
In what function should the magic happen?
- The topic ‘Creating a custom search result page’ is closed to new replies.