How to Add MP3 Audio Files in WordPress

Audio files are often used for Podcasts.  They include: .mp3, .m4a, .ogg, and .wav files.

There are two ways to manually add MP3 files to your WordPress posts.

Option 1: Upload Individual MP3 Files Directly to a WordPress Post

If you only have a handful of MP3 files to upload, the first method will be the best option.

From the left-hand navigation menu in WordPress:

  1. Click Posts > Add New.
  2. Click the Add Media button above the text box.
  3. Drag file(s) from your computer and drop them into the WordPress upload screen or click Select Files.
  4. When desired files have been added, click Insert into post.
Uploading in the above manner will result in each MP3 file being saved in the wp-content/uploads folder.

A link to the MP3 file will now be created in your post.

Option 2: Upload Multiple MP3 files through File Manager

If you have multiple MP3 files to upload, follow these instructions:

  1. Log into cPanel.
  2. In the Files section, click on the File Manager icon.
  3. Select Web Root (public_html/www) and be sure you are in the Document Root for the domain using the WordPress install.
  4. Click to expand the public_html folder, navigate to the wp-content folder and double click on it.
  5. Along the top of your File Manager screen, click on the New Folder icon.
  6. In the popup window, name your new folder audio (all lowercase) and click Create New Folder.
  7. Your new folder will be created in /public_html/wp-content
  8. You may now bulk upload your MP3 files to this folder either by clicking on the Upload button in File Manager or via FTP.
When naming your MP3 files, it is best to remove any spaces from the file names and name them all in lowercase letters.

EXAMPLE: Instead of This Is A Great Song.mp3, use: thisisagreatsong.mp3

After uploading, the resulting link would be:
www.yourdomainname.com/wp-content/audio/thisisagreatsong.mp3

Add MP3 Links to a Post

To use MP3 links in your WordPress post:

  1. Log into your WordPress Dashboard.
  2. Click Posts > Add New.
  3. Write your post.  
  4. Highlight the words that you want to turn into a hyperlink to the MP3 file and click the Link icon from the text box toolbar.
  5. In the URL field, enter the URL of the MP3 file.
  6. In the Title field, name the MP3 file.
  7. Check the box for Open link in a new window/tab.
  8. Click Add Link.

Downloading and Playing MP3 Files in WordPress

To download the uploaded file, right click on the newly created link and choose Save As.

To play the file, right click on the newly created link and choose Open in New Tab. The audio file should play automatically.

Using WordPress Plugins for Audio Files

Audio files can be added to WordPress with various plugins, but HostGator does not recommend using a plugin to do this unless there are specific features you need from that plugin, as some plugins have been known to cause resource issues.

Please refer to this article for more information: Plugins Advice.