• One of the fields I have for my custom post type (using ACF) is to upload an audio file. The name of the field is audio_file. Inside my content loop, I need to be able to put the URL of the audio file within the html5 audio tags. But, I can’t figure out how to get that url with a shortcode.

    After numerous variations and attempts, here’s what I have now, which does not work:

    [url field audio_file]

Viewing 1 replies (of 1 total)
  • Thread Starter lkane

    (@lkane)

    I figured it out:

    [attached field=audio_file][field download-url][/attached]

Viewing 1 replies (of 1 total)
  • The topic ‘URL for Audio File Field’ is closed to new replies.