Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

c21 page template

By: alchymyth on Mar 24th, 2013  |  syntax: PHP  |  size: 0.53 KB  |  views: 51  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /*
  3. Template Name: Category 21 Posts
  4. */
  5.  
  6. get_header(); ?>
  7. <div id="content">
  8. <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  9. query_posts("cat=21&paged=$paged");
  10. if ( have_posts() ) : ?>
  11. <?php /* Start the Loop */ ?>
  12. <?php while ( have_posts() ) : the_post(); ?>
  13. <?php get_template_part( 'content', get_post_format() ); ?>
  14. <?php endwhile; ?>
  15. <?php  wplook_content_nav( 'nav-below' ); ?>
  16. <?php endif; ?>
  17. </div><!-- #content -->
  18. <div class="clear"></div>
  19.  
  20. <?php get_sidebar();
  21. get_footer(); ?>