Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › results page override functionality on other pages › Reply To: results page override functionality on other pages
August 14, 2022 at 8:56 am
#38861
Participant
Thanks for your fast response!
So if I understand it correctly, by adding $is_front_page, the override should apply on the static front page that I added. It seems to work, but the issue I have now is, that it always shows the first article from the posts list, instead of the front page.
My code:
add_filter('asp_query_is_search', 'asp_force_override_on_conditions', 9999, 2);
function asp_force_override_on_conditions($is_front_page) {
return true;
}
Any chance you can help me? Thank you very much for your time.