Title: mp3j player function vs short code
Last modified: August 21, 2016

---

# mp3j player function vs short code

 *  [deltatango](https://wordpress.org/support/users/deltatango/)
 * (@deltatango)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/mp3j-player-function-vs-short-code/)
 * I installed a plugin which allows me to add a custom file upload field to my 
   post so that I can upload an mp3 file. I would like to add a PHP function to 
   my theme to read the url of this custom file and then display an mp3 player in
   the single.php page.
 * What is the function to do this? Can you just feed it a url and call the PHP 
   function?
 * Thanks!
 * p.s. essentially what I am looking for is something like:
 * mp3_player($the_url_of_the_custom_field)
 * which will output all the javascript and html
 * [http://wordpress.org/extend/plugins/mp3-jplayer/](http://wordpress.org/extend/plugins/mp3-jplayer/)

The topic ‘mp3j player function vs short code’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [deltatango](https://wordpress.org/support/users/deltatango/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/mp3j-player-function-vs-short-code/)
 * Status: not resolved