• I want to make posts from different categories look different from one another:

    <?php
    $post = $wp_query->post;
    if ( in_category('9') ) {
    include(TEMPLATEPATH . '/single2.php');
    } else {
    include(TEMPLATEPATH . '/single1.php');
    }
    ?>

    But where do I put this piece of code? Does it go in the The Loop? Or does it go in template page (single2.php in the example)?

    Silly question, but I would be appreciative if someone could help.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Where to insert code for category theme?’ is closed to new replies.