This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: results page override functionality on other pages

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

#38861
martinclementmartinclement
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.