SHARE
TWEET

Untitled

a guest Sep 13th, 2017 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- Latest Episode -->
  2. <div class="latest-episode"><div class="heading"><strong class="title">LATEST EPISODE</strong>&nbsp;&nbsp;&nbsp;<em class="subtitle">(New Episode Every Friday)</em></div>
  3. <?php $lastest_ep = new WP_Query('category_name=episodes&showposts=1');
  4. while ($lastest_ep->have_posts()) : $lastest_ep->the_post(); ?>
  5. <div>
  6.   <a href="<?php the_permalink() ?>" rel="bookmark"><p class="smalltitle">
  7.   <?php the_post_thumbnail('medium'); ?>Episode <?php $currentID = get_the_ID(); ?><?php $currentNumber = Get_Post_Number($currentID); ?><?php echo $currentNumber; ?>:<br />
  8.     <span class="lighter"><?php the_title(); ?></span></p></a>
  9. <p><?php the_excerpt('<em class="lighter">(read more)</em>'); ?></p>
  10. </div>
  11. </div>
  12. <?php
  13. endwhile;
  14. wp_reset_query();
  15. wp_reset_postdata();
  16. ?>
  17. <!-- End Latest Episode -->
  18.  
  19.  
  20. <!-- Past Episodes -->
  21. <div class="past-episodes">
  22.  
  23. <?php $prev_ep = new WP_Query('category_name=episodes&showposts=2&offset=1');
  24. while ($prev_ep->have_posts()) : $prev_ep->the_post(); ?>
  25. <div class="flt-l">
  26. <a href="<?php the_permalink() ?>" rel="bookmark"><p class="smalltitle"><?php the_post_thumbnail('thumbnail'); ?>Episode <?php $currentID = get_the_ID(); ?><?php $currentNumber = Get_Post_Number($currentID); ?><?php echo $currentNumber; ?>:<br />
  27.     <span class="lighter"><?php the_title(); ?></span></p></a>
  28.   <p><?php the_excerpt('<em class="lighter">(read more)</em>'); ?></p>
  29. </div>
  30. <?php
  31. endwhile;
  32. wp_reset_query();
  33. wp_reset_postdata();
  34. ?>
  35.  
  36. <br class="clear" />
  37. <div class="archive">Click Here for the <a href="#">Episode Archive</a></div>
  38. </div>
  39. <!-- End Past Episodes -->
  40.  
  41.  
  42. <!-- Begin Site Updates -->
  43. <?php $updates = new WP_Query('category_name=blog,sitenews&showposts=5');
  44. while ($updates->have_posts()) : $updates->the_post(); ?>
  45.   <p class="post-subject"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></p>
  46.   <blockquote>
  47.     <p><?php the_content(' '); ?></p>
  48.   </blockquote>
  49.   <p align="right" class="post-timestamp">This is a <?php the_category(' '); ?>, posted on <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_time('F jS, Y') ?></a> by <?php the_author_posts_link() ?><br />
  50.     <img src="images/blog-separator.png" width="620" height="7" alt="separator" /></p>
  51. <?php
  52. endwhile;
  53. wp_reset_query();
  54. wp_reset_postdata();
  55. ?>
  56.    
  57. <!-- End Site Updates -->
RAW Paste Data
Top