Podpress Plugin WordPress Outside the Loop Single page

Am building a page that pulls in a single post from a WordPress podcast site that I built that uses Podpress. The long and short of it is that it requires instantiating the WordPress app externally, and using a mini-loop, pretty straight forward, but for the longest time I couldn’t figure out for the life of me why the Podpress player wasn’t showing up…

Instead, I was only getting the [display_podcast] token that one places in a post for Podpress and WordPress to then replace upon rendering the post…

I knew there had to be a simple solution.  My final code is below.  The key: wp_head();

< ? php

require_once(‘../podcast/wp-load.php’ ); // load the app
wp_head(); // this gets all the plugins and dependencies!!!!
query_posts(‘p=1807’); // documentation on using query_posts is nice and simple and clear
while (have_posts()) : the_post(); // iterate over the return

// use various things to output the data

the_ID(); the_time(‘l, F j, Y’); the_title(); the_content(); // and so on

endwhile;

? >

Leave a Reply

You must be logged in to post a comment.