From 8c473756cb9fc3cadcf31e81525f0f21a364938e Mon Sep 17 00:00:00 2001 From: david Date: Wed, 23 Nov 2011 19:43:15 +0000 Subject: [PATCH] Activar el extracto en los posts. git-svn-id: https://192.168.0.254/svn/Proyectos.FundacionLQDVI_Web/trunk@52 77ab8c26-3d69-2c4d-86f2-786f4ba54905 --- src/wp-content/themes/lqdvi/lib/custom.lib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-content/themes/lqdvi/lib/custom.lib.php b/src/wp-content/themes/lqdvi/lib/custom.lib.php index 6072ace4..903262b7 100644 --- a/src/wp-content/themes/lqdvi/lib/custom.lib.php +++ b/src/wp-content/themes/lqdvi/lib/custom.lib.php @@ -375,8 +375,10 @@ function get_the_content_with_formatting ($more_link_text = '(more...)', $stript { $pp_blog_read_more_title = 'Read More'; } - - $content = get_the_content('', $stripteaser, $more_file); + $content = get_the_excerpt(); + if (strlen($content) < 1) { + $content = get_the_content('', $stripteaser, $more_file); + } $content = strip_shortcodes($content); $content = str_replace(']]>', ']]>', $content); $content = _substr(strip_tags(strip_shortcodes($content)), 600);