I am trying to pull an excerpt of the most recent post made in my blog to my static main page via php, I can get a certain post by using this:
$new_id = 1;
$post_id = get_post($new_id);
$title = $post_id->post_content;
But I want an excerpt from the newest post made if possible or just how to get it’s ID would be great. Thank you for any advice!
- The topic ‘Pull Most Recent Post Excerpt’ is closed to new replies.