- This topic has 1 reply, 2 voices, and was last updated 3 months ago by .
- You must be logged in to reply to this topic.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Does Genesis support different SEARCH file templates similar to the native WordPress archive and single types?
I have a bunch of CPTs and I want different result pages for each CPT.
I can of course do this pretty easily in one giant search.php template file but it is messy with this many CPTs and no commonality between their output.
I would much prefer to just have separate files for ease of management and clean code.
Would be awesome to have search-cpt.php files and if ?s=[searchString]&post_type=[cpt_name] matches then run that template file for the results page.
edited for types
© 2024 WPEngine, Inc.