public function content($moreLinkText = null, $stripTeaser = false)
    {
        global $post;
        // Store current post into temp variable
        $_p = $post;
        $post = $this->post;
        setup_postdata($post);
        $content = get_the_content($moreLinkText, $stripTeaser);
        // Apply filter
        $content = WP::applyFilters('the_content', $content);
        $content = str_replace(']]>', ']]&gt;', $content);
        // Restore the post
        $post = $_p;
        if ($_p) {
            setup_postdata($post);
        }
        return $content;
    }
public function content($moreLinkText = null, $stripTeaser = false)
    {
        global $post;
        // Store current post into temp variable
        $_p = $post;
        $post = $this->post;
        setup_postdata($post);
        $content = get_the_content($moreLinkText, $stripTeaser);
        // Apply filter
        $content = WP::applyFilters('the_content', $content);
        $content = str_replace(']]>', ']]&gt;', $content);
        // Restore the post
        $post = $_p;
        if ($_p) {
            setup_postdata($post);
        }
        return $content;
    }
public function content ( $ moreLinkText = null , $ stripTeaser = false ) { global $ post ; // Store current post into temp variable $ _p = $ post ; $ post = $ this -> post ; setup_postdata ( $ post ) ; $ content = get_the_content ( $ moreLinkText , $ stripTeaser ) ; // Apply filter $ content = WP :: applyFilters ( 'the_content' , $ content ) ; $ content = str_replace ( ']]>' , ']]&gt;' , $ content ) ; // Restore the post $ post = $ _p ; if ( $ _p ) { setup_postdata ( $ post ) ; } return $ content ; }
Retrieve the post's content

Note: Temporarily sets the global $post object to the event post and resets it

@access public
@link http://codex.wordpress.org/Function_Reference/get_the_title
@global WP_Post $post
@param string $moreLinkText (default: null)
@param string $stripTeaser boolean (default: false)
@return string
Retrieve the post s content