Title: do_shortcode() not working
Last modified: August 21, 2016

---

# do_shortcode() not working

 *  Resolved [JoshKay](https://wordpress.org/support/users/joshkay/)
 * (@joshkay)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-not-working-6/)
 * Hey,
 * I tried embedding it via do_shortcode(), but it doesn’t seem to work. The plugin
   only checks for the shortcode in the content and disables the js otherwise. Is
   there a way to manually enable the js?
 * Josh
 * [https://wordpress.org/plugins/mp3-jplayer/](https://wordpress.org/plugins/mp3-jplayer/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [simon.ward](https://wordpress.org/support/users/simonward-1/)
 * (@simonward-1)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-not-working-6/#post-4724782)
 * 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](https://wordpress.org/support/users/joshkay/)
 * (@joshkay)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-not-working-6/#post-4724790)
 * 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](https://wordpress.org/support/users/joshkay/)
 * (@joshkay)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-not-working-6/#post-4724791)
 * And I seemed to forget to say thanks 😉
 * Thanks!
 *  Plugin Author [simon.ward](https://wordpress.org/support/users/simonward-1/)
 * (@simonward-1)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-not-working-6/#post-4724796)
 * 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](https://wordpress.org/support/users/joshkay/)
 * (@joshkay)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-not-working-6/#post-4724853)
 * 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](https://wordpress.org/support/users/simonward-1/)
 * (@simonward-1)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-not-working-6/#post-4724890)
 * Hey Josh, it failed because of the ‘s’ in the word ‘track**s**‘, 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](https://wordpress.org/support/users/joshkay/)
 * (@joshkay)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-not-working-6/#post-4724897)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/mp3-jplayer_c3a59d.svg)
 * [MP3-jPlayer](https://wordpress.org/plugins/mp3-jplayer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mp3-jplayer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mp3-jplayer/)
 * [Active Topics](https://wordpress.org/support/plugin/mp3-jplayer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mp3-jplayer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mp3-jplayer/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [JoshKay](https://wordpress.org/support/users/joshkay/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-not-working-6/#post-4724897)
 * Status: resolved