# propertyhive/2.3.1/templates/search/result-count.php

Property Hive, version 2.3.1. 37 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/2.3.1/code/templates/search/result-count.php
- Raw: https://pluginprobe.com/plugins/propertyhive/2.3.1/raw/templates/search/result-count.php
- Modified: 2026-09-16T09:29:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/propertyhive/2.3.1/code/templates/search/result-count.php#L10-L20`.

```php
<?php
/**
 * Result Count
 *
 * Shows text: Showing x - x of x results
 *
 * @author 		PropertyHive
 * @package 	PropertyHive/Templates
 * @version     1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

global $propertyhive;

?>
<p class="propertyhive-result-count">
	<?php
	if ( 1 == $total ) {
		esc_html_e( 'Showing the single result', 'propertyhive' );
	} elseif ( $total <= $per_page || -1 == $per_page ) {
		printf( 
			/* translators: %s: total number of properties */
			esc_html__( 'Showing %s properties', 'propertyhive' ),
			esc_html( number_format_i18n( $total ) )
		);
	} else {
		printf( 
			/* translators: 1: first result number, 2: last result number, 3: total number of properties */
			esc_html__( 'Showing %1$s–%2$s of %3$s properties', 'propertyhive' ),
			esc_html( number_format_i18n( $first ) ),
			esc_html( number_format_i18n( $last ) ),
			esc_html( number_format_i18n( $total ) )
		);
	}
	?>
</p>
```
