Sure @dcooney thanks.
<li class="listing-item-grid-1" <?php if (!has_post_thumbnail()) { ?> class="no-img"<?php } ?>>
<?php if ( has_post_thumbnail() ) { the_post_thumbnail('alm-thumbnail'); }?>
<h2 class="title"><a>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<!--<p class="entry-meta"><?php the_time("F d, Y"); ?></p>-->
<?php
$excerpt = get_the_excerpt();
$excerpt = substr( $excerpt, 0, 105 ); // Only display first 260 characters of excerpt
$result = substr( $excerpt, 0, strrpos( $excerpt, ' ' ) );
echo '<p class="post-summary">'.$result.'</p>';
?>
<?php //the_excerpt(); ?>
</li>
-
This reply was modified 3 years, 11 months ago by Pietro.