WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Audio Player] How to make Audio player being played on homepage only

[Plugin: Audio Player] How to make Audio player being played on homepage only

Viewing 3 replies - 1 through 3 (of 3 total)
  • David

    @davidwbeatygmailcom

    @tungjacob can you post the code you are using to get the audio to play in the footer? I cannot even get that far!

    @tungjacob – use a conditional tag so the function only fires on the homepage – if(is_front_page() should do the trick.

    Thank you, the question has been solved by another friend developer

    Here is his code:

    <?php if (function_exists("insert_audio_player")) {
    if ( is_home() ) {
    // homepage code goes here
    insert_audio_player("[audio:http://link.mp3]");
    } else {
    // other pages code go here
    insert_audio_player("[audio:http://link2.mp3]");
    }
    } ?>

    Hope this helps another people who have the same problem

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Audio Player] How to make Audio player being played on homepage only’ is closed to new replies.