Support » Fixing WordPress » trying to get metadata from most recent post, to place on another page.

  • Basically The site is used for a podcast. Each post is a post about an episode. In each post i have created custom fields for key information about the episode including the link to that episodes mp3.

    What io’d like to do is have on my home page a link to the most recent episode (or post) meta data about the MP3.

    <?php get_post_custom_values($key, $post_id); ?>

    I change $key to be the custom field and it will get that data for the current page. Is there a way to get just the post id of the most recent post. That way i can replace $post_id with that. that should get the meta data from the most recent post and place it on any post anywhere in the site.

  • The topic ‘trying to get metadata from most recent post, to place on another page.’ is closed to new replies.