Home › Forums › General Issues › Using repeater fields with MP3 and Audio players › Reply To: Using repeater fields with MP3 and Audio players
would it make a difference if you use this array instead of the track_url direct?
$track = get_sub_field('track_url');
//if you use data-array instead of data-url at file return
//$track_url = get_sub_field('track_url') ;
//$track = $track_url['url'];
$attr = array(
'src' => $track ,
'loop' => '',
'autoplay' => '',
'preload' => 'none'
);
echo wp_audio_shortcode( $attr );
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.