function tdr_form_post_excerpt($value)
 {
     global $post;
     $content = get_the_content();
     $content = tdr_trim_by_word_limit($content, 55) . "...";
     return $content;
 }
Esempio n. 2
0
function tdr_get_the_excerpt($limit)
{
    // Get the Global post content.  This must be used within the Loop.
    global $post;
    $content = $post->post_content;
    // Set a word limit
    if (!is_int($limit)) {
        $limit = 25;
    }
    // Make sure to take out all HTML elements and truncate to word limit
    $content = tdr_trim_by_word_limit($content, $limit) . apply_filters('excerpt_more', '');
    return $content;
}