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