WordPress.org

Ready to get started?Download WordPress

Forums

Audio Player
Audio Player does not work in external (wordpress) page (1 post)

  1. matthieu33
    Member
    Posted 3 years ago #

    Okay - its maybe a bit complicated - i try:

    i am showing some contents of wordpress in an external page.
    This works with a thing which, i think, is called the loop. Looks like this:

    <title>Untitled Document</title>
    <?php
    // Include WordPress
    define('WP_USE_THEMES', false);
    require('wp-load.php');
    ?>
    </head>
    <body>
    <div id="myblog">
    <?php
    $lastposts = get_posts('showposts=10&category=3');
    foreach($lastposts as $post) :
    setup_postdata($post);
    ?>
    <h2> content here <?php the_title(); ?></h2>
    <?php the_content(); ?>
    <?php endforeach; ?>
    </div>

    </body>
    </html>

    Now, the Auido Player won't show up on this external page. I think, it has something to do with the linking. The Player shows up if i am pasting this code, generated from Audio Player:

    <script type="text/javascript">
    AudioPlayer.embed("audioplayer_1", {soundFile:"my mp3 URL.MP3"});
    </script>

    but well, that's obviously not the target, to each time paste this code in...

    Ist there any work around. Maybe to tell Audio Player in wordpress to include this linking..?

    thanks in advance.
    Matt

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic