WordPress.org

Ready to get started?Download WordPress

Forums

Detect Enclosure in Post (1 post)

  1. thornomad
    Member
    Posted 8 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic