WordPress.org

Forums

Spun
single (1 post)

  1. maikis
    Member
    Posted 1 year ago #

    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');

    }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.