Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $post = $wp_query->post;
- if ( in_category('new', $post->ID) ) { ?>
- <body <?php body_class('new'); ?>>
- <?php
- }
- elseif ( in_category('featured', $post->ID) ) { ?>
- <body <?php body_class('featured'); ?>>
- <?php
- }
- else { ?>
- <body <?php body_class('class-name-generic'); ?>>
- <?php
- }
- ?>
Add Comment
Please, Sign In to add comment