The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

trying to get metadata from most recent post, to place on another page. (1 post)

  1. tempestjonny
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.