Function Reference: geodir_display_message_not_found_on_listing

Summary

Display message when no listing result found.

Package

GeoDirectory

Parameters

$template_listview
(string) (optional) Listing listview template. Ex: listing-listview, widget-listing-listview,
gdevents_widget_listview, link-business-listview.

Default: : ‘listing-listview’
$favorite
(bool) (required) Listing Optional. Are favorite listings results? Default: false.

Default: None

Change Log

Since: 1.5.5

Filters

‘geodir_message_listing_not_found’ [Line: 527]

Source File

geodir_display_message_not_found_on_listing() is located in geodirectory-functions/template_functions.php [Line: 513]

Source Code

function geodir_display_message_not_found_on_listing($template_listview = 'listing-listview', $favorite = false) {
    if ($favorite) {
		$message = __('No favorite listings found which match your selection.', 'geodirectory');
	} else {
		$message = __('No listings found which match your selection.', 'geodirectory');
	}
	
	/**
	 * Filter the no listing found message.
	 *
	 * @since 1.5.5
	 * @param string $template_listview Listing listview template.
	 * @param bool $favorite Are favorite listings results?
	 */
	$message = apply_filters('geodir_message_listing_not_found', $message, $template_listview, $favorite);
	
	echo '
  • ' . $message . '
  • '; }