WordPress.org

Ready to get started?Download WordPress

Forums

Audio Player
Adding AudioPlayer to Sidebar / widget (2 posts)

  1. paulbaverey
    Member
    Posted 3 years ago #

    Hi All,

    Sorry if this is a stupid question, but I've been able to get the audioplayer working without any issues in a post or page.... but when I add the following code to the text widget, it's coming up empty... any ideas?

    <?php if (function_exists("insert_audio_player")) {
     insert_audio_player("[audio:http://www.domain.com/path/to/song.mp3|width=100%]"); } ?>

    or
    [audio:http://www.domain.com/path/to/your_mp3_file.mp3|autostart=yes]

    Thanks,
    Paul

  2. tristans
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic