post_excerpt) ? $the_post->post_excerpt : $the_post->post_content; } else { global $post; $text = ($post->post_excerpt) ? $post->post_excerpt : get_the_content(''); } $text = strip_shortcodes($text); $text = apply_filters('the_content', $text); $text = str_replace(']]>', ']]>', $text); $text = strip_tags($text); $excerpt_more = ' ' . '...continued'; $words = preg_split("/[\n\r\t ]+/", $text, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY); if (count($words) > $excerpt_length) { array_pop($words); $text = implode(' ', $words); $text = $text . $excerpt_more; } else { $text = implode(' ', $words); } if ($echo) echo apply_filters('the_content', $text); else return $text; } } ?>