I’m using wordpress 3.6.1
wordpress can display a player automatically when I’m apload an audio file in a post but i want display duration and download link automatically bellow the player. powerpress plugin have these feature but i won’t use plugin. how is this possible?
mvieiras, that would work of course, but it’s hardly automatic 🙂
For automatic insertion of the information, you could hook ‘the_content’ filter and search for audio tags. The download link can be extracted from within the tag. The duration I believe is in the audio file itself, you would need a format specification in order to extract it. Once all the information is collected, the additional HTML can be injected into the content stream.
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘download link for audio’ is closed to new replies.