WordPress.org

Support

Support » How-To and Troubleshooting » Detect Enclosure in Post

Detect Enclosure in Post

  • Hi,

    My website has three categories; two have different podcasts. Currently, I just link to the file in the post text with a “Download MP3” handle.

    What I would like to do, however, is have my template files include some php code that would check to see if the post it was listing in the loop had an MP3 file, and then, if it did, display the link and icon to the podcast up with the title and meta information.

    My audiobook will include the full text (multiple pages per post) and I wanted to make sure that the podcast mp3 link stays at the top the entire time.

    Any suggestions on how to do that ?

    Thanks,
    Damon

  • The topic ‘Detect Enclosure in Post’ is closed to new replies.
Skip to toolbar