From 61552ba00135131bbea347cf29af9d67245f4cf9 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 7 Sep 2018 11:25:15 -0400 Subject: [PATCH] fixing syntax error in the functions file for the excerpt of the blocks --- functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions.php b/functions.php index c5302a9..5852588 100644 --- a/functions.php +++ b/functions.php @@ -212,7 +212,7 @@ function content_excerpt($post_id, $length = 35){ if( $the_post->post_excerpt ){ $the_excerpt = $the_post->post_excerpt; } else { - $the_excerpt = apply_filters('the_content', $block->post_content); + $the_excerpt = apply_filters('the_content', $the_post->post_content); } $excerpt_length = $length; //Sets excerpt length by word count @@ -224,7 +224,6 @@ function content_excerpt($post_id, $length = 35){ array_push($words, '…'); $the_excerpt = implode(' ', $words); endif; - echo $the_excerpt; return $the_excerpt; } ?> -- 2.17.1