- This topic has 1 reply, 2 voices, and was last updated 7 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Return Custom Message if no results available
Tagged: callbacks, No results, results
This would normally be in the template file that delivers the post loop to the page, which should be coded like this:
if ( $query->have_posts() ) {
while ($query->have_posts()) {
$query->the_post();
// output the post here
}
} else {
echo "No Results Found";
}