Support » Theme: Spun » single

  • Can I utilize that to have different post template?

    Thanks
    <?php
    $post = $wp_query->post;

    if ( in_category(‘1’) ) {
    include(TEMPLATEPATH . ‘/single1.php’);

    } elseif ( in_category(‘2’) ) {
    include(TEMPLATEPATH . ‘/single2.php’);

    } else {
    include(TEMPLATEPATH . ‘/single_altre.php’);

    }
    ?>

  • The topic ‘single’ is closed to new replies.