Hi,
Our client wanted a more custom search. I’ve been searching the forums and found Relevanssi.
I’ve added some PHP to the theme and CSS to the theme (to make the ajax window scrollable), but I would like it to limit the results shown in the Ajax search, to five posts, five pages and a max of five staff members. Then the viewer would use the “view all results” button at the bottom to see more. At the moment there is too much to scroll though because the site is massive. Link in private content.
Is this possible?
Thanks
Hey jonrouse,
Thank you for using Enfold.
Please refer to the following thread.
// https://kriesi.at/support/topic/ajax-search-dont-find-keywords/#post-792015
We limited the items by using the following line.
$posts = array_slice($tempquery->posts, 0, 5);
You can adjust the default value “5” to something else.
Best regards,
Ismael