WordPress.org

Ready to get started?Download WordPress

Forums

Audio Player
Add Audio Player to Widget (3 posts)

  1. amasango
    Member
    Posted 1 year ago #

    I'm trying to use the Audio Player plugin within a widget in my sidebar.

    I found the code below from the support website for the plugin, but even when I try inserting this into my widget it's not working. I'm trying to insert this in a Text widget.

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

    Any help would be most appreciated.
    Thanks,
    Tyler

    http://wordpress.org/extend/plugins/audio-player/

  2. amasango
    Member
    Posted 1 year ago #

    Still wondering if someone could help me with this. It should be pretty simple to accomplish. Could it be that this code needs to be added somewhere else and not directly to the sidebar widget itself?
    Thanks.

  3. zubigal
    Member
    Posted 1 year ago #

    I'm having a similar issue. I want to set up a PAGE with 1 or more players listed on the page for product testimonies.

    When I place the code from your above post into the TEXT (not Visual) part of the editor (for a page), the player AND the code display on the webpage. I have a similar problem in the "testimonials" section of WP, too.

    I found this player http://wordpress.org/extend/plugins/haiku-minimalist-audio-player/ that inserts a text link or graphical player for audio playback and installed it. (It may or may not be useful for you, you'll have to try it out.)

    With the Haiku player I did have an error code come up in Firefox (which is probably a Firefox issue), however, when I viewed my webpage in Safari, its all perfect. So the Haiku player is something minimal that fits my purposes,is not complicated to set up, and should serve my purpose until I need something more complicated.

    I hope you might find use for the Haiku player. Good luck to you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic