What should I look into if I want to build a form that searches through custom post types, i.e. a completely rebuilt form? Creating the actual form and it’s elements is no problem but the next steps brings up a lot of tricky questions such as,
-
How can I pass
$_GET
data to another file maintaining WordPress’s permalinks intact ? -
How can I process the posts without having to create a pyramid of if statements and rather use WordPress’s own core functionalities ?
Try looking at the code below and put your version of it in the functions.php file. This should work perfectly. You might have to replace the â and â with apostrophes â.