From: Anthony Talarico Date: Fri, 7 Sep 2018 15:25:15 +0000 (-0400) Subject: fixing syntax error in the functions file for the excerpt of the blocks X-Git-Tag: v1.0.0^2~43 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=61552ba00135131bbea347cf29af9d67245f4cf9;p=WP-Themes%2Fcharemisd.git fixing syntax error in the functions file for the excerpt of the blocks --- 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; } ?>