Title: wp_audio_shortcode not working
Last modified: August 21, 2016

---

# wp_audio_shortcode not working

 *  Resolved [eXalted](https://wordpress.org/support/users/exalted/)
 * (@exalted)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/wp_audio_shortcode-not-working/)
 * Okay, I’m trying to test the new **wp_audio_shortcode** function using the following
   code:
 *     ```
       $attr = array(
       		'src'      => 'http://wpthemetestdata.files.wordpress.com/2008/06/originaldixielandjazzbandwithalbernard-stlouisblues.mp3',
       		'loop'     => '',
       		'autoplay' => '',
       		'preload' => 'none'
       		);
       wp_audio_shortcode( $attr )
       ```
   
 * But nothing happens. no error, nothing, just blank. I know that I’m doing something
   wrong but I can’t figure out what is it?

Viewing 1 replies (of 1 total)

 *  Thread Starter [eXalted](https://wordpress.org/support/users/exalted/)
 * (@exalted)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/wp_audio_shortcode-not-working/#post-3981791)
 * Oh, the solution was to use `echo wp_audio_shortcode( $attr );`

Viewing 1 replies (of 1 total)

The topic ‘wp_audio_shortcode not working’ is closed to new replies.

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [WordPress 3.6](https://wordpress.org/support/topic-tag/wordpress-3-6/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [eXalted](https://wordpress.org/support/users/exalted/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/wp_audio_shortcode-not-working/#post-3981791)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
