Tagged: search function, taxonomies
Hi, is there a way to exclude certain taxonomies (especially custom taxonomies) from the search? Some taxonomies just fill up the first 5 results in the ajax results window.
Best regards,
Holger
Hey Holger!
Yes, you can use a plugin SearchWP to tune the default wordpress search engine. It also works with the ajax search: http://kriesi.at/documentation/enfold/use-searchwp-instead-of-the-standard-search/
Regards,
Peter
Hi Peter,
if you can replace the standard search with a plugin, then I would use Relevanssi instead. I found a post about replacing search with relevanssi (http://kriesi.at/documentation/enfold/use-relevanssi-in-search-instead-of-the-default-search/), but I am not sure where to change the code. In function.php?
Best regards,
Holger
Hi!
You don’t need to change any code. Just place the code into the child theme functions.php file (at the very bottom of the file).
Regards,
Peter
Problem is, I don’t have a child theme. So I guess I either have to set one up or change the original functions.php, right?
Hey!
Yes, personally I recommend to create a child theme but if you don’t want to use a child theme ou can modify the enfold/functions.php file. Just insert the code at the very bottom of the file.
Regards,
Peter
Well, guess it is time to create a child theme anyway, once we edit php files ;). Will do that. Thanks for the support!