Skip to content

Instantly share code, notes, and snippets.

@propertyhive
Created August 12, 2016 07:44
Show Gist options
  • Save propertyhive/bfecd2b2659a4690beaa66ea328023ae to your computer and use it in GitHub Desktop.
Save propertyhive/bfecd2b2659a4690beaa66ea328023ae to your computer and use it in GitHub Desktop.
<?php
/**
* Loop Summary
*
* @author PropertyHive
* @package PropertyHive/Templates
* @version 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $property;
?>
<div class="summary">
<?php
// Change 150 below to alter the length
echo substr($property->post_excerpt, 0, 150) . '...';
?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment