ThemeShaper Forums » Thematic

Setting alternate category post types.

(2 posts)
  • Started 9 years ago by Maureen
  • Latest reply from Chris
  • This topic is not resolved
  1. Maureen
    Member

    Should be ridiculously simple but I can't seem to find an answer. Am rather new at this.

    I wanted to create different page types for categories in wordpress and tried these codes.

    <?php
    if (is_category(9)) {
    include(TEMPLATEPATH . '/single2.php');
    } else {
    include(TEMPLATEPATH . '/single1.php');
    }
    ?>

    However, the templatepath cause it to keep reading from the parent theme (thematic) directory - seems like I have yet to grasp fully the concept of child theme i suppose - but the php files are in my child theme directory.

    How do I actually work around this other than pasting the files into thematic's folder?

    Posted 9 years ago #
  2. Hi Maureen,

    use STYLESHEETPATH instead of TEMPLATEPATH.

    Chris

    Posted 9 years ago #

RSS feed for this topic

Reply

You must log in to post.