Advertisement
lberelson

custom3: single_v1

Jan 24th, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. /* Tests post id if in category 4 or subcats 5-10 choose the 2 col template using sidebar-classes
  2.    in left col. Otherwise, use 1 col template
  3. */
  4.  
  5. <?php if (have_posts()) : while (have_posts()) : the_post() ; ?>
  6. <?php  if (in_category (4, 5, 6, 7, 8, 9, 10 ) )
  7.                 {
  8.                 get_template_part( 'single', '2col' );
  9.                 }
  10.         else
  11.                 {
  12.                 get_template_part ('single', '1col' );
  13.                 }
  14. ?>
  15. <?php endwhile; endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement