SHARE
TWEET

Snippet

a guest Mar 31st, 2016 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php query_posts("post_type=podcasts&posts_per_page=9")?>
  2.     <?php if ( have_posts() ) : ?>
  3.         <ul class="podcast">
  4.             <?php  while ( have_posts() ) : the_post(); ?>
  5.                 <li>
  6.                     <?php the_post_thumbnail("medium"); ?>
  7.                     <?php
  8.                         if( function_exists('powerpress_get_enclosure_data') ) {
  9.                             $EpisodeData = powerpress_get_enclosure_data($post->ID);
  10.                             if( $EpisodeData ) {
  11.                                 $url = $EpisodeData['url'];
  12.                                 echo $url;
  13.                             }
  14.                         }
  15.                     ?>
  16.                     <h2><?php the_title(); ?></h2>
  17.                     <?php the_content(); ?>
  18.                 </li>
  19.             <?php endwhile; ?>
  20.         </ul>
  21.     <?php else : ?>
  22.         <h2>Oops...</h2>
  23.         <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
  24.     <?php endif; ?>
  25. <?php wp_reset_query(); ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top