Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author simon.ward

    (@simonward-1)

    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.

    Thread Starter JoshKay

    (@joshkay)

    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…]');

    Thread Starter JoshKay

    (@joshkay)

    And I seemed to forget to say thanks ??

    Thanks!

    Plugin Author simon.ward

    (@simonward-1)

    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!

    Thread Starter JoshKay

    (@joshkay)

    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?

    Plugin Author simon.ward

    (@simonward-1)

    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.

    Thread Starter JoshKay

    (@joshkay)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘do_shortcode() not working’ is closed to new replies.