I am using the Advanced Custom Fields plugin to create custom fields for post formats. I have a field that only displays when the audio post format is selected. This is a text filed where the user places a url from a soundcloud audio file, for example and then the the audio file should show on the front end of the post. However, I am having issues making this work. I have done the same process for the video post format and its working properly, however for audio files I am not having any luck so far.
The field I have created has the name of audio_post_format_url.
And the code bellow gets the value of that field and echoes it:
$audio = get_post_meta( $post->ID, 'audio_post_format_url', true );
echo wp_oembed_get( $audio );
But at the moment nothing gets echoed.. what am I doing wrong here?