if( $the_post->post_excerpt ){
$the_excerpt = $the_post->post_excerpt;
} else {
- $the_excerpt = $the_post->post_content;
+ $the_excerpt = apply_filters('the_content', $block->post_content);
}
$excerpt_length = $length; //Sets excerpt length by word count
array_push($words, '…');
$the_excerpt = implode(' ', $words);
endif;
-
+ echo $the_excerpt;
return $the_excerpt;
}
?>
<div class="front-page-post-content-container overlay">
<h2 class="title-posts"><a href="<?php echo $block->url; ?>"><?php echo $block->post_title; ?></a></h2>
<div class="glm-block-content">
- <?php echo apply_filters('the_content', $block->post_content) . $block->post_excerpt;?>
+ <?php content_excerpt($block->ID) . $block->post_excerpt;?>
<?php if($block->url) { ?>
- <!-- <a class="glm-block-readmore" href="<?php echo $block->url;?>">...More content at this link</a> -->
+ <a class="glm-block-readmore" href="<?php echo $block->url;?>">...More content at this link</a>
<?php } ?>
</div>