Support

Account

Home Forums ACF PRO oembed url to mp3 – how does it work Reply To: oembed url to mp3 – how does it work

  • Hi @mmjaeger

    Could you please try this code:

    $theEmbed = get_field('oembed_field_name');
    if(preg_match('/\[audio src="(.*)" \/\]/', $theEmbed)){
        echo do_shortcode($theEmbed);
    }else{
        echo $theEmbed;
    }

    I hope this helps.