projects
/
WP-Themes
/
charemisd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a44926
)
fixing syntax error in the functions file for the excerpt of the blocks
author
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 7 Sep 2018 15:25:15 +0000
(11:25 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 7 Sep 2018 15:25:15 +0000
(11:25 -0400)
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
c5302a9
..
5852588
100644
(file)
--- 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;
}
?>