Compact WP Audio Player


Compact WordPress Audio Player plugin is an HTML5 + Flash hybrid based wordpress plugin which can be used to embed an mp3 audio file on your WordPress post or page using a shortcode. The audio player is cute and compact and will play on all major browsers.

This audio player plugin Supports .mp3 and .ogg file formats.

The audio files that you embed using this plugin will work on all devices.


  • The audio player is compact so it does not take a lot of real estate on your webpage
  • HTML5 compatible so the audio files embedded with this plugin will play on iOS devices
  • Works on all major browsers – IE7, IE8, IE9, Safari, Firefox, Chrome
  • The audio player is responsive.
  • If you do podcasting then this audio player can be used to embed the audio files on your WordPress posts or pages
  • If you are selling audio files from your site then you can use this plugin to offer a preview
  • Add the audio player to any post/page using shortcode
  • Use autoplay option to play an audio/mp3 file as soon as the page loads
  • Ability to specify both the mp3 and ogg version of your audio files. The plugin will play the appropriate one based on the device.

More details can be found on the Compact Audio Player Plugin Page


Use the following shortcode to embed an audio file anywhere on your site

[sc_embed_player fileurl=”URL OF THE MP3 FILE”]

Example shortcode:

[sc_embed_player fileurl=”″]


  1. Upload the “” file via the WordPress’s plugin uploader (Plugins -> Add New -> Upload)
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Create a page or post to show the player using shortcode.
  4. Add shortcode anywhere in the post/page like: [sc_embed_player fileurl=”mp3 file url”]


Will my audio file work in all major browsers?


Can I loop the audio files embedded using this plugin?


Will the audio player work on iOS devices?



Gouere 16, 2024 1 reply
It does what it promises very well. I have replaced the controls images with custom ones. Is it possible to get a code snippet to be able to choose between different “play” images?
Eost 22, 2022 1 reply
The play button of this plug-in is pasted on the top page. It is better not to take up extra space with compacts. It’s been working fine so far. If it’s greedy, I think it would be even better if there were variations in icon design.
Mae 6, 2022 1 reply
It’s a cute plugin. It’s been around a long time, nice to see the developer sticking with it. I installed it years ago in a draft web site I still am working on. I want a music file to play when someone loads the home page. Therefore, the autoplay option to play an audio/mp3 file as soon as the page loads is great. However, it never stops playing. I have the player in the sidebar so the visitor can see it to shut it off if they want. However, there is no way to tell the little player to ONLY PLAY ONCE. That’s all I need it for. When the visitor arrives at the web site. Unfortunately, is plays the music on every single page load. I would kindly suggest that you add a default feature to limit plays to once, on the first page load, regardless of how many different pages are loaded. Thanks for thinking about it.
Meurzh 8, 2022 1 reply
I love the compactness, but it needs to kill all audio playing on the page when I hit the play button. Otherwise, we have multiple audio playing over each other.
Ebrel 10, 2021 1 reply
I’m using it to play a couple different songs on multiple pages. Exactly what I needed. Simple, easy to use and a clean look.
Read all 67 reviews

Contributors & Developers

“Compact WP Audio Player” is open source software. The following people have contributed to this plugin.


“Compact WP Audio Player” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Compact WP Audio Player” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Added a settings option and a filter to disable the URL validation for the fileurl parameter.


  • The fileurl field will also accept the relative URL value (example: /wp-content/uploades/audio.mp3)


  • Added a fallback for the fileurl verification when the PHP URL validation fail for non-latin characters.


  • Added a CSS wrapper class for the audio player to make it work better with block themes.
  • Validate URL for the ‘fileurl’ parameter of the shortcode.


  • PHP 8.2 compatibility.


  • Added output escaping to the shortcode parameters. Thanks to WPScan for pointing it out.


  • Escape attributes in the shortcode.
  • Added nonce check to the settings menu save operation.
  • Thanks to WPScan team for pointing these out.
  • WP 5.8 compatibility.


  • Updated the audio player for iOS 10 safari.
  • WordPress 4.6 compatible.


  • Bugfix – Audio player embedded with the “autoplay” flag (in the default template) wasn’t changing the pause button icon to a play button icon after the audio file finished playing.


  • WordPress 4.4 compatibility.


  • Corrected a typo in the play button image file name.
  • changed the uniqid() function to use the “more_entropy” parameter so the value is more unique.
  • Fixed a minor bug with internet explorer.


  • Fixed a minor bug (new player template1) with the “loops” parameter.


  • Fixed a minor bug in the new player template1 with the “autoplay” parameter.

1.9 – Added a new shortcode for a different audio player with seek bar and volume control in the player. The documentation has usage details of this new shortcode.

1.8 – Added the option to specify both an .mp3 and .ogg version of the audio file in the shortocode.

1.7 – WordPress 3.8 compatibility

1.6 – Added an option to disable simultaneous playback. It will automatically stop the audio file that is currently playing when a user plays a new file.

1.5 – added a auto loop parameter option in the shortcode to automatically loop the audio file

1.4 – added a volume parameter option in the shortcode so you can specify the volume of the audio

1.3 – Added the autoplay option in the shortcode.

1.2 – added the ability to spcify a container class via the shortcode (helpful for CSS customization)

1.1 – minor javascript bug fix