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
- The topic ‘Accessing the_excerpt from within a plugin’ is closed to new replies.