excerpt are now displayed

This commit is contained in:
Amine Ben hammou
2018-05-30 09:15:14 +00:00
parent 3872ffbbc4
commit 6914a9c224

View File

@@ -51,6 +51,8 @@ class PostContentManager {
$content = strip_tags($content, implode('', $tags_not_being_stripped)); $content = strip_tags($content, implode('', $tags_not_being_stripped));
if($with_post_class) { if($with_post_class) {
$content = str_replace('<p', '<p class="' . self::WP_POST_CLASS .'"', wpautop($content)); $content = str_replace('<p', '<p class="' . self::WP_POST_CLASS .'"', wpautop($content));
} else {
$content = wpautop($content);
} }
$content = trim($content); $content = trim($content);