Advertisement
levelle

category.php

Jul 6th, 2011
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.93 KB | None | 0 0
  1. <?php
  2. get_header();
  3.    
  4.    
  5.     // Show Food post type if it is MENU or BAR
  6.     if (is_category( array('11', '12') ) || $isChild == 1 ) {
  7.         query_posts($query_string  . '&post_type=food&posts_per_page=-1');
  8.     }
  9. ?>
  10.         <div id="left_column">
  11.             <?php get_sidebar('menu'); ?>
  12.         </div>
  13.         <div id="container">
  14.             <div id="content" role="main">
  15.                 <h2 <?php if (is_category( array('11', '12', '18') ) || $isChild == 1 ) { echo ('class="menu_title"'); } ?> ><?php printf( __( '%s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h2>
  16.  
  17.                 <?php
  18.                 if (is_category( array('11', '12') ) || $isChild == 1 ) {
  19.                     get_template_part( 'loop', 'menu' );
  20.                 } elseif (is_category( '18') ) {
  21.                     get_template_part( 'loop', 'master' );
  22.                 } else {
  23.                     get_template_part( 'loop', 'category' );
  24.                 }
  25.                 ?>
  26.             </div><!-- #content -->
  27.         </div><!-- #container -->
  28.         <div class="clear"></div>
  29.  
  30. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement