Support » Plugins » Hacks » download link for audio

  • hi
    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • jaja.px,

    For the download link, you can just use an tag, like that:
    Download Now

    Now for the duration, I guess you’ll have to write it on code.

    Moderator bcworkz


    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.