Yes, there’s a function specifically for doing this, it’s called mp3j_addscripts(), and you use it together with mp3j_put() (which you should use rather than do_shortcode), please see the help on the player settings page for an example.
Fantastic – got it to work, but discovered it only works when you write it as
mp3j_put('[mp3-jplayer etc…]');
and not
mp3j_put('[mp3j etc…]');
And I seemed to forget to say thanks 😉
Thanks!
You’re welcome Josh. When you tried with the mp3j did you remember to change the tracks param to just track? It’s pedantic i know, so maybe I’ll try and catch this in the next version!
Hi Simon, no… I tried
mp3j_put('mp3j tracks="some.mp3"');
and I didn’t understand that you needed to put mp3j for the library player, mp3t for a single track player and mp3-jplayer for a playlist player. My bad, since this is quite clearly documented on the WP plugin page.
I couldn’t find any theme insertion/PHP examples in the WP backend?
Hey Josh, it failed because of the ‘s’ in the word ‘tracks‘, the correct parameter is ‘track’ (without the ‘s’), this is what i mean by pedantic. It will work if you correct that param.
Fyi There is no functional difference between the single players, there is no specific ‘library player’ they all can play library files / folder files, or urls. It sounds like I’ve not made it clear somewhere, was it the demo page info?
In version 1.8.7 the template tag example is on the settings page under the help dropdown, there’s a link to ‘Template Tag Help’ next to the basic tag info.
So all the shortcodes have the same functionality?
It would be nice to have some documentation on the use of mp3j_put(), since it’s actually quite simple but I didn’t see it explained anywhere.
I’m working on a cut-down theme that doesn’t use any images, and tries to be a bit more ‘responsive’. If I’m successful I’ll send it over.