This topic is: not resolved
- This topic has 0 replies, 1 voice, and was last updated 5 years ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- The forum ‘General Discussion’ is closed to new topics and replies.
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.
Community Forums › Forums › Archived Forums › General Discussion › Search title filter ignored when searching specific posts
Tagged: genesis_do_search_title, hooks
Hello Everyone!
I've got a custom search box on my site I've added the following to so it will search only a specific post type:
<input type="hidden" value="cp_recipe" name="post_type" />
The problem being, on the search results page you get a query string like; ?s=MySearchedTerm&post_type=cp_recipe which seems to then ignore the genesis_do_search_title() function on the page and just puts "Recipes" the post_type name in the title.
I'd like for it to remain the default Genesis title of "Search Results for: MySearchedTerm"
Is this possible?
https://spreadthemustard.com/recipes-cooking/© 2023 WPEngine, Inc.