Generate playlists automatically from mp3s attached to your post/page
Audio support in WordPress makes me cry. No native player, the fields in the Media library are just wrong, and let’s not get into ID3 tag support. The audio shortcode and player provided by Jetpack is a step in the right direction. However, the ability to directly create a player or playlist on a post/page from attached mp3s makes me sad again. Writing that shortcode is nasty business for anything beyond a file or two.
For example of said nastiness, take a look at the docs (obviously slanted towards wordpress.com users): http://en.support.wordpress.com/audio/
When inserting into a post, make sure to click the None button for Link URL and then click the Insert into Post button (as illustrated in the image below). If your file is an mp3 file, this will insert the audio player shortcode into your post or page.
Nope! Doesn’t work if you’re hosting your own installation of WP. And what about the [gallery] shortcode for images? So easy to round up all your attached pictures and display them all automagically. Again, no love for audio.
This plugin acts as a wrapper for Jetpack’s [audio] shortcode. It rounds up all the mp3s attached to your post/page and adds them as a playlist in the Jetpack player. Simply attach your mp3s to your post/page and use the shortcode  [jplaylist] where you want your playlist. You can still use all the options from the vanilla [audio] shortcode.
Installation and Usage:
- Upload the plugin, either via ftp or the Plugin-in dash.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Bulk upload and attach mp3s to your post via the “Add Audio” or “Add Media” button, but do not insert them.
- Order mp3s in “Gallery” tab.
- Use the [jplaylist] shortcode to display a playist of all the mp3s attached to your page/post
Walkthrough
Example:
This player generated from the mp3′s I attached to this page. No messy [audio] shortcode was written: honest!
Shortcode [jplaylist bgcolor=EAEAEA] produces:
[jplaylist bgcolor=EAEAEA]
FAQ:
=How do I order the songs in the playlist?=
Click on “Add Audio”. Go to “Gallery”. Drag and drop your mp3s into the order you want (it ignores images and other crap). The plugin goes by ascending order.
= How do I change the title and artist info for a mp3? =
Song title corresponds to the “Title” field, and song artist corresponds to the, um, “Caption” field (I know this makes not a ton of sense, but I’m working with what I’m given, folks. I may have the plugin change this field title in a future release). WordPress makes a guess as to the title of the mp3 when you upload it. I recommend you change this info as soon as you upload inside the post/page. You can also change this in the media library.
= What about other audio formats than mp3? =
Sorry, other audio formats aren’t supported by Jetpack’s player.
= What about accessing the player options (color, size, etc)? Can I do that? =
Yes! You can use any of those options. You can either use the janky pipe (|) method to connect everything like you’re told to with the [audio] shortcode, or you can use proper attributes.
Example:
[jplaylist bgcolor="000000" lefticon="00ff00" righticon="FF0000" animation="no" loop="yes"]
or
[jplaylist bgcolor=000000|lefticon=00ff00|righticon=FF0000|animation=no|loop=yes]
makes
[jplaylist bgcolor="000000" lefticon="00ff00" righticon="FF0000" animation="no" loop="yes"]
= Can you support my favorite player WordPess player plugin xyz? =
Maybe! You can talk to me about it at least.
= I’m hitting an upload limit. Help! =
Welp, that’s nothing to do with the plugin or even WordPress. You can edit (or create) the php.ini file in your root directory to tweak this. Better yet, contact your host re: increasing your upload size. Hint.







This is amazing. Yay, finally an easy playlist. XOXO
It could be that I am being really stupid, but where you’ve written “Nope! Doesn’t work if you’re hosting your own installation of WP” are you referring to how dumb wordpress.com support is for audio, or the fact that the plugin you’ve written doesn’t work for own-hosted wordpress? I am self-hosting a blog here and would love to use your player. Sorry if I am being a dumbass.
Please discount my last comment, I figured it out. Your plugin is awesome.
Glad you figured it out, Felix. I think WP support for audio is just all around stupid dumb