Display message if no search results returned
-
Is it possible to display a message if no properties match the user’s search criterion?
For example on your demo:
https://demo.wp-listings.com/?s&post_type=listing&locations&property-types=residential&bedrooms&bathrooms=2-bathrooms
returns a blank. Could it instead return something like “Sorry. No properties were found matching your search criteria.” ?I know how to use else if to show a message if no posts match in the loop, but can’t seem to figure out how to do the same for the search results in archive-listing.php.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Display message if no search results returned’ is closed to new replies.