I just installed SearchWP and this is my search results page http://note.io/1G49cuy which is basically a 404, except that the number of results is listed (in this case 134).
I’ve read that either no additional configuration is required, or this http://goo.gl/549PgF but it doesn’t seem to be working. Can you tell me how to get this to work?
Hi Rogier!
Have you added this code Peter provided – http://kriesi.at/documentation/enfold/use-searchwp-instead-of-the-standard-search/ ?
Alternatively, you can try using Relevanssi. Integration can be found here – http://kriesi.at/documentation/enfold/use-relevanssi-in-search-instead-of-the-default-search/
Best regards,
Yigit
Hi Yigit,
Thanks, no I hadn’t added it, because the AJAX search function is not of immediate concern; I’d just like the search to work for now. At any rate, I added the code and it hasn’t made a difference.
Rogier
Turns out this may have to do with my hosting (WPEngine) http://goo.gl/rV1bMo
Hi Rikard, yes thanks. I edited the wp-config to disable the ‘query governor’, but now this random post code has stopped working http://goo.gl/lJltMP So that’s not so great.
Hi!
Are you using it on the homepage? That code is only going to target the homepage. If you want it everywhere then try this out.
add_filter('avia_post_slide_query','avia_order_by_random', 10, 2);
function avia_order_by_random($query, $params)
{
$query['orderby'] = 'rand';
return $query;
}
Best regards,
Elliott