Audio shortcode not implemented correctly
-
Hi guys.
If you are using the native HTML5 player for listening to MP3’s then the code is wrong. Here’s a patch for 0.45.15
File: \sermon-browser\sb-includess\frontend.php
Line 685
echo do_shortcode(str_ireplace('%SERMONURL%', $url, sb_get_option('mp3_shortcode')));Should be:
$attr = array( 'src' => $url, 'loop' => '', 'autoplay' => '', 'preload' => 'none' ); echo wp_audio_shortcode( $attr );Otherwise the src for the media player never gets added.
Thanks,
Wil.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Audio shortcode not implemented correctly’ is closed to new replies.