Created
August 12, 2016 07:44
-
-
Save propertyhive/bfecd2b2659a4690beaa66ea328023ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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