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

Reply To: Elementor Archive Posts Nothing Found Message Override

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Elementor Archive Posts Nothing Found Message Override Reply To: Elementor Archive Posts Nothing Found Message Override

#28443
Ernest MarcinkoErnest Marcinko
Keymaster

I think the problem here is, that checking $query->have_posts() returns false always, because the query did not execute yet. Basically the $query->have_posts() function is used to check if there are any matches, but after the query is finished. But then again, calling $query->set(..) has no effect.
I’m not sure if that hook allows you to check the query results, because it is triggered before the query is executed.