Advertisement
Chroniclers

category.php

Nov 1st, 2011
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.93 KB | None | 0 0
  1. <?php get_header(); ?>
  2.         <?php
  3.             $cat_id = get_query_var('cat');
  4.             $category = get_category($cat_id);
  5.         ?>
  6.     <div id="content">
  7.         <div class="padder">
  8.  
  9.         <div class="page" id="blog-archives">
  10.  
  11.             <h3 class="pagetitle"><?php echo $category->name ?></h3>
  12.  
  13.             <?php if ( have_posts() ) : ?>
  14.                    
  15.  
  16.                     <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>                      
  17.  
  18.                         <div class="post-content">
  19.                                                        
  20.                             <div class="entry">
  21.                                 <?php echo (do_shortcode('[dpsc_grid_display category="'.$cat_id.'" total="-1" column="2" per_page="6" type="duka" order="DESC"]'));  ?>
  22.                             </div>
  23.                            
  24.                         </div>
  25.  
  26.                     </div>                 
  27.  
  28.                
  29.  
  30.             <?php else : ?>
  31.  
  32.                 <h2 class="center"><?php _e( 'Not Found', 'cc' ) ?></h2>
  33.                 <?php locate_template( array( 'searchform.php' ), true ) ?>
  34.  
  35.             <?php endif; ?>
  36.  
  37.         </div> 
  38.  
  39.         </div><!-- .padder -->
  40.     </div><!-- #content -->
  41.  
  42. <?php get_footer(); ?>
  43.  
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement