Title: Audio shortcode not implemented correctly
Last modified: August 30, 2016

---

# Audio shortcode not implemented correctly

 *  [DeveloperWil](https://wordpress.org/support/users/developerwil/)
 * (@developerwil)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/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.
 * [https://wordpress.org/plugins/sermon-browser/](https://wordpress.org/plugins/sermon-browser/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [DeveloperWil](https://wordpress.org/support/users/developerwil/)
 * (@developerwil)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/audio-shortcode-not-implemented-correctly/#post-6782596)
 * Any of the developers would like to acknowledge?
 *  [ahoyland](https://wordpress.org/support/users/ahoyland/)
 * (@ahoyland)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/audio-shortcode-not-implemented-correctly/#post-6782644)
 * Hi DeveloperWil,
 * I just wanted to say thanks for posting this.
 * I was just getting a “Download File” option whenever I viewed a sermon page through
   Sermon Browser, instead of seeing the audio player.
 * Replacing the original line 685 with the code you posted fixed the problem.
 * So thanks for that.
    Andy
 *  Thread Starter [DeveloperWil](https://wordpress.org/support/users/developerwil/)
 * (@developerwil)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/audio-shortcode-not-implemented-correctly/#post-6782645)
 * No worries [@ahoyland](https://wordpress.org/support/users/ahoyland/)
 * Looks like the sermon browser is currently unsupported which is a shame because
   it has a huge user base.
 *  [ahoyland](https://wordpress.org/support/users/ahoyland/)
 * (@ahoyland)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/audio-shortcode-not-implemented-correctly/#post-6782646)
 * Indeed!
 * One of those ones where I would really like to have the ability to support it!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Audio shortcode not implemented correctly’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sermon-browser_10232e.svg)
 * [Sermon Browser](https://wordpress.org/plugins/sermon-browser/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sermon-browser/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sermon-browser/)
 * [Active Topics](https://wordpress.org/support/plugin/sermon-browser/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sermon-browser/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sermon-browser/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [ahoyland](https://wordpress.org/support/users/ahoyland/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/audio-shortcode-not-implemented-correctly/#post-6782646)
 * Status: not resolved