Why don’t these two wordpress php blocks work out the same?

This first bit works:

                $my_id = 617;
                $post_id_7 = get_post($my_id); 
                $title = $post_id_7->post_excerpt;
                echo $title;

While this second bit doesn’t:

Read More
                $post_id_7 = get_post(617); 
                $title = $post_id_7->post_excerpt;
                echo $title;

What gives?

Related posts

Leave a Reply

2 comments