• When I upload an MP3 to the media library, there’s a Caption, Description, Artist, Album, Genre, and Year. Is there any way to display that data when placing the [audio] shortcode or is that data just for the back-end? I’d love to be able to display info about the audio without having to worry about it getting separated from the player if the page is edited.

    • This topic was modified 8 years, 2 months ago by arothmanmusic.
    • This topic was modified 8 years, 2 months ago by bdbrown.
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The default audio shortcode doesn’t offer any way to utilize that data in its output. You could use the “wp_audio_shortcode” filter to add additional content to the shortcode’s output. Your filter callback would need to get the data out of the database where ever it’s stored, probably postmeta, then format the data for output and insert it where appropriate into the original output string.

Viewing 1 replies (of 1 total)
  • The topic ‘Display the caption or meta data with the audio player?’ is closed to new replies.