Advertisement
alchymyth

Category 718 Page Template

Jan 22nd, 2013
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. <?php /*
  2. Template Name: Category 718 Page Template
  3. */ ?>
  4. <?php get_header(); ?>
  5.  
  6. <div id="content">
  7.  
  8.     <div id="contentleft">
  9.  
  10.         <div class="postarea3">
  11.  
  12.         <?php include(TEMPLATEPATH."/breadcrumb.php");?>
  13.             <?php echo category_description( 718 ); ?>
  14.  
  15. <?php  query_posts('posts_per_page=10&cat=718&paged='.get_query_var('paged'));
  16. if (have_posts()) :
  17.   while (have_posts()) :
  18.     the_post();  
  19.             ?>
  20.  
  21.              <div class="article4">
  22.  
  23.             <?php the_excerpt(); ?>
  24.             </div>
  25.  
  26.          <?php endwhile; else: ?>
  27.  
  28.             <p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
  29.             <p><?php if(function_exists('wp_simple_pagination')) {
  30.     wp_simple_pagination();
  31. } ?></p>
  32.  
  33.         </div>
  34.  
  35.     </div>
  36. <?php wp_reset_query(); ?>
  37. <?php include(TEMPLATEPATH."/sidebar.php");?>
  38.  
  39. </div>
  40.  
  41. <!-- The main column ends  -->
  42.  
  43. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement