Shortcode Reference

For examples of how to use shortcodes, please see the Demo Pages.
 

Single-File Players

These are the parameters for both [mp3t] and [mp3j] shortcodes:

ParameterPossible ValuesDescription
trackeg:
http://example.com/myfile.m4a
A filename, url, or number (from custom fields)
captionYour caption text
counterparturl to an alternative file format
fontSizeeg: 20pxChange the title font size
titleeg: My Track TitleAdd a custom title
flipy nFlip play/pause button to other side
loopy nRepeat plays the file upon completion
autoplayy nAuto-starts the player when you visit the page. Note that some mobiles and tablets prevent autoplay
voleg: 75A number between 0 - 100
indy nShow connecting indicator and time
flowy nnon line-breaking player
volslidery nshow volume control

 
 
Additionally for [mp3t] shortcodes:

ParameterPossible ValuesDescription
playeg: Play Me!Text for the play button
stopeg: Stop It!Text for the stop button

 
 

Playlist & Popout Players

These are the shortcode parameters for [playlist] (or [mp3-jplayer]) and [popout] (or [mp3-popout]) shortcodes, the popout shortcode also has a few extra options listed at the bottom of the page:

ParameterPossible ValuesDescription
trackseg:
http://example.com/myfile.m4a
FEED:/my/folder
A comma seperated list of filenames, urls, or FEED commands
counterpartsA comma separated list of urls to alternative file formats
captionseg: My Caption; Another CaptionA semicolon seperated list of captions
loopy nRepeat plays the playlist upon completion
autoplayy nAuto-starts the player when you visit the page. Note that some mobiles and tablets prevent autoplay
voleg: 75A number between 0 - 100
dloady n loggedinShow the download button
titleeg: My TitleShown above player and as the popout window title
listy nStart wih the playlist open (players must have more than 1 track to have a playlist)
pny nShow Prev and Next buttons
widtheg: 40% or 300pxA numeric width including the units
posleft right rel-L rel-C rel-R Float left, float right, or left/centre/right on it's own line
stopy nShow Stop button
shuffley nShuffles the playlist
pickeg: 3Picks the specified number of tracks randomly from the available playlist
idAny WordPress page ID, eg:35Playlists the tracks from the custom fields of the specified post
heighteg. 130pxA numeric height including the units
styleeg: fullbars nostopA list of modifier names (separated by spaces). These change the look of the player, the following are provided by default:
nostop
nopn
nolistbutton
noplayer
fullbars
notitle
idseg 10,11,12A comma separated list of library item IDs
fontsizeeg: 20pxChange the title font size
font_family_1theme
arial
verdana
times
courier
lucida
palatino
gill
Change the Title font family
font_family_2theme
arial
verdana
times
courier
lucida
palatino
gill
Change the playlist font family
titleAlignleft
centre
right
titleTopeg: 20px
titleColeg: blue
#fff
Title colour
titleOffseteg: 20pxTitle left margin
titleOffsetReg: 20pxTitle right margin
titleBoldtrue
false
titleItalictrue
false
captionBoldtrue
false
captionItalictrue
false
listBoldtrue
false
listItalictrue
false
imagesA comma seperated list of image urls, or true/false
imageSizeautoW
autoH
thumbnail
medium
large
full
imageAlignleft
centre
right
imgOverflowvisible
hidden
ppTextPopout button text (default to the text set on the options page)

 
 
Additional parameters for the [popout] (or [mp3-popout]) shortcode:

ParameterPossible ValuesDescription
texteg: Pop me out!Text for the popout button
tageg: h2The html tag to wrap the text in
imageAn image url to use for the popout button

 

 



Posted in Documentation.

Documentation


All Help & Docs



Copyright © 2017 MP3-jPlayer, Simon Ward, Matt Jones, Jack Dale.