Detect Enclosure in Post (1 post)

  1. thornomad
    Posted 10 years ago #


    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 ?


Topic Closed

This topic has been closed to new replies.

About this Topic