Support » Plugins » Accessing the_excerpt from within a plugin

  • I’ve tried about 15 different ways to get at the excerpt of the post to send off to tumblr, but I’m getting nothing.

    Currently I’m using this chunk of code:

    $post = get_post($post_ID);
    $post_excerpt = $post->post_excerpt;

    Nothing is in $post_excerpt however. I switched it to post_content and that comes through fine. Any ideas?

    I’m using WP 2.6.1

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Accessing the_excerpt from within a plugin’ is closed to new replies.