- This topic has 4 replies, 3 voices, and was last updated 11 years, 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Changing song title in audio player shortcode
Tagged: audio player shortcode, mp3
Hi – I hope this is a simple question….
We are using the wp_eStore_audio_player shortcode to play audio inside the product description, and it works fine.
But the default title of the song seems to always be “Track #1”. I’m wondering if there’s a way to change that with the shortcode…
Thanks
You actually don’t need to use the wp_eStore_audio_player shortcode any more. After many requests, the developer of the audio player plugin implemented the shortcode using the proper shortcode API. So you can just use the standard shortcode [audio] that comes with that plugin in eStore’s product description and it will work.
You can use our compact audio player plugin as an alternative too:
http://www.tipsandtricks-hq.com/wordpress-audio-music-player-plugin-4556
Ok thanks, but it doesn’t quite work. I put this inside our Product Description:
[audio:http://www.artistsofliving.com/xxx/Breaze-Coherent-Meditation.mp3|titles=Breaze]
The above ‘audio’ shortcode works elsewhere on the site as shown, and it’s the latest version of the plugin.
The product is displayed on the page like this:
[wp_eStore_fancy2 id=3]
When it displays the track on the store page, the player appears, but it says Track #1 as the title, and ‘file not found’ when I attempt to play.
Thanks
Hi, you wouldn’t have this issue if your song had the proper meta information (example: title, artist) in the audio file. The audio player plugin reads them and shows the title accordingly.
Anyway, we have just updated the eStore audio shortcode so it can take additional parameters to override those values. For example:
[wp_eStore_audio_player src="http://www.example.com/auido/test.mp3" title="custom title" artist="artist name"]
You will need to install a fresh copy of the extra shortcode plugin to get the updated shortcode:
http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460
Works great, thank you.