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

Property Hive, version 2.2.6. 23 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/2.2.6/code/templates/search/summary.php
- Raw: https://pluginprobe.com/plugins/propertyhive/2.2.6/raw/templates/search/summary.php
- Modified: 2018-11-13T09:22:18+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.2.6/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;

$summary_length = apply_filters('propertyhive_search_summary_length', 300);
?>
<div class="summary">

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

</div>
```
