WordPress.org

Ready to get started?Download WordPress

Forums

Audio Player
weird weird thing : php echo "[audio:my.mp3]" not working (1 post)

  1. stevenzhou
    Member
    Posted 3 years ago #

    This is driving me crazy !

    On the post page,

    [audio:my.mp3]

    works perfect.

    but,

    <phpcode>
    <php echo "[audio:my.mp3]"; ?>
    </phpcode>

    NOT working : unexpected T_STRING, eval()’d code...

    I tried change the code to cheat :

    <phpcode>
    <?php
    $audio = "[audio";
    $str = $audio.":my.mp3]" ;
    echo nl2br(htmlentities($str));
    ?>
    </phpcode>

    What I got is the plain texts showing up: [audio:my.mp3], instead of player controller.

    How to fix this ? Please urgent ! I am online waiting 24 hours for solutions....

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic