I am using get_post() to display an array of post ids.
I am using it properly. I can get
$title = $post_id->post_title; echo $title;
to display the title of the post.
However, when I try
$excerpt = $post_id->post_excerpt; echo $excerpt;
nothing is displayed. There is content in the post, and I can display when I use post_content. But I want the excerpt because I want to filter out the images in the post.
- The topic ‘get_post post_excerpt not displaying’ is closed to new replies.