I have a search form that I want to place in multiple pages (it will be in different header types) I do this by using the 'get search form' function. On my Search form I have radio sections listing two custom post types 'poster' and 'house'.
I have two different search pages for each post type. I want them to be separate because I want to add the search separate search pages on my Navigation e.g. "search for a poster", "search for a house".
Is there a way how I can get the search form to redirect the user to either the "search for a house" page or the "search for a poster" depending on the radio button selected before the entry was submitted?.
Preferably I would like to keep all the necessary coding within the Searcform.php file if possible.