• I’m now using the Podcasting plugin and it seems to work OK but I would like to know how to place the podcast enclosure/player where I want it. Right now I have the more…. thing activated and I would like to have the player right after more. Is there a way to do that by putting some tag directly in the post, without the player showing up in the middle of the post on the main post page, or better yet some tag I can put on my index page to place it exactly where I want in some div?

    Thanks.

Viewing 2 replies - 31 through 32 (of 32 total)
  • cavemonkey50

    (@cavemonkey50)

    I’m using the Audio Player plugin’s player, so they should be the same. Basically, the player is grabbing what it can from the ID3 information. Whatever program you’re using to create the ID3 tags is probably improperly saving the information or something. I know iTunes doesn’t do a good job, so if that’s what you’re using, I would recommend trying another application to create the MP3s.

    nicosFR

    (@nicosfr)

    Hi !
    I have been struggling to show the links to my 2 podcast formats, 1 video and 1 audio with the loop you provided:

    while ( $podcast = get_post_meta($post->ID, 'enclosure', false) )
    {
         $podcast = explode("\n", $podcast);
         $podcast_details = unserialize($podcast[3]);
    
         // echo $podcast[0]; // The URL for the enclosure.
         // print_r($podcast_details); // The iTunes details for the podcast.
    
         echo podcasting_shortcode(array('type'=>'mp3'), $podcast[0]); / Output the player. Change mp3 to video for video player (beta only).
    }

    It made an infinite loop showing the last format added over and over. I found a dirty workaround by doing my own post_meta query like that:

    $metaQuery = "SELECT meta_value FROM wp_postmeta WHERE post_id = ".$post->ID." AND meta_key = 'enclosure'";
    $metaResult = mysql_query($metaQuery) or die(mysql_error());
    $metaRow = mysql_fetch_assoc($metaResult);
    do
    {
         $podcast = explode("\n", $metaRow['meta_value']);
         echo $podcast[0]; // The URL for the enclosure
    } while ($metaRow = mysql_fetch_assoc($metaResult));

    There is probably a cleaner way to do it using the get_post_meta function, but I couldn’t figure it out…

    Hope tha twill help some of you or someone comes up with a more elegant solution.

Viewing 2 replies - 31 through 32 (of 32 total)
  • The topic ‘Custom placement of podcast enclosure’ is closed to new replies.