May 20, 2012

Add Audio to WordPress

If you have a wordpress site, here’s how to place an mp3 file on a page, have it start automatically and play one time.

1. From your WordPress dashboard, go to your plugins page and install the “audio player” plugin

2. Use an ftp program and upload your audio file to the root directory of your website, or alternatively, create a folder called “audio” and place your mp3 file in there.

3. In your dashboard, click on “pages” (left hand side) and go to the page where you want the audio file to play automatically.

4. Place this shortcode* into the page:
[ audio:http://www.yourwebsite.com/path/youraudiofile.mp3|autostart=yes ]

**IMPORTANT – remove the extra space after the first bracket “[" and the extra space before the second bracket "]“!

5. In the shortcode replace http://www.yourwebsite.com/path/youraudiofile.mp3 with the correct path to your file, including the filename.

* With this shortcode, your audio file will play one time by default.

6. Navigate to your page and test it out.  Here’s the example of how mine works:  http://www.steveswebtoolbox.com/audiopage

Also, if you would prefer placing the audio file in the sidebar or on the home page, here are some additional instructions by the creator of the “audio player” plugin: http://wpaudioplayer.com/frequently-asked-questions/

Speak Your Mind

*