After implementing SearchWP and following your implementation instructions (for ajax), my search results are limited to 4. Do you have any idea how I might increase this? http://new.jcc.co.uk/?s=bulkheads
Hey AscenderDesign!
Please refer to this link: http://kriesi.at/documentation/enfold/use-searchwp-instead-of-the-standard-search/
Find this line of code:
// limit the results to 5
function avia_searchwp_search_num_results() {
return 5;
}
Increase the default value of 5.
Cheers!
Ismael
Hi Ismael
Thank you for the suggestion, unfortunately it just modifies the number that appear in the AJAX drop-down list. Do you have any other ideas?
Regards
Christian
Hi!
You can try to use the search conditional to increase the number of search results on the search page only –
// limit the results to 5
function avia_searchwp_search_num_results() {
if(is_search()) return 5;
return 4;
}
Best regards,
Peter