# propertyhive/2.3.1/templates/search/summary.php

Property Hive, version 2.3.1. 24 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/2.3.1/code/templates/search/summary.php
- Raw: https://pluginprobe.com/plugins/propertyhive/2.3.1/raw/templates/search/summary.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/summary.php#L10-L20`.

```php
<?php
/**
 * Loop Summary
 *
 * @author 		PropertyHive
 * @package 	PropertyHive/Templates
 * @version     1.0.0
 */

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

global $property;

// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone.
$summary_length = apply_filters('propertyhive_search_summary_length', 300);
?>
<div class="summary">

	<?php 
		echo esc_html( substr( wp_strip_all_tags( $property->post_excerpt ), 0, $summary_length ) );
		if ( strlen(wp_strip_all_tags($property->post_excerpt)) > $summary_length ) { echo '...'; }
	?>

</div>
```
