WordPress.org

Ready to get started?Download WordPress

Forums

Audio Player
Want to show the player in post_type other than "post" and "page" (1 post)

  1. aleportas
    Member
    Posted 1 year ago #

    Hey there!

    I´m using this plugin a lot and it works great so far. But now I want to insert the player in custom post and the shortcode doesn't work. It is printed in Front End just as "[audio trackname]".

    I tried with the tag you provide in the FAQ section of the page,

    <?php if (function_exists("insert_audio_player")) {
      insert_audio_player("<p class="audioplayer_container"><span style="display:block;padding:5px;border:1px solid #dddddd;background:#f8f8f8" id="audioplayer_8">Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW" title="Download Adobe Flash Player">here</a>. You also need to have JavaScript enabled in your browser.</span></p><script type="text/javascript">AudioPlayer.embed("audioplayer_8", {soundFile:"aHR0cDovL3dwYXVkaW9wbGF5ZXIuY29tL2F1ZGlvLzpodHRwOi8vd3d3LmRvbWFpbi5jb20vcGF0aC90by9zb25nLm1wM3x3aWR0aD0xMDAlA"});</script>");
    } ?>

    but it is not working. Also, it wouldn't be nice to add all the tag averytime I want to show the player (600 artists with many discs each).

    I'll appreciate any help.

    Thanks!

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic