I’ve created a new category template (named category-15.php) and put it in my childtheme directory. I thought the easiest way to make it act like single.php (so it displays the post and the comments) is to just copy the code from single.php, but that is not working, in fact, it changes nothing.
I need this because in this sites navigation pages are considered as “core information links” and the categories just as extras which contain no important stuff about the business.
This one specific category I am talking about here contains only one post, called “The Guestbook”. After clicking the category link in the nav — which is named just like the post — one should see the post with all the comments as well.
This is the code content of category-15.php
<?php
/*
Template Name: Guestbook Template
*/
?>
<?php
global $options;
foreach ($options as $value) {
if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; }
else { $$value['id'] = get_option( $value['id'] ); }
}
?>
<?php get_header() ?>
<div id="container">
<div id="content">
<?php the_post(); ?>
<?php thematic_navigation_above();?>
<?php get_sidebar('single-top') ?>
<?php thematic_singlepost() ?>
<?php get_sidebar('single-insert') ?>
<?php thematic_navigation_below();?>
<?php thematic_comments_template(); ?>
<?php get_sidebar('single-bottom') ?>
</div><!-- #content -->
</div><!-- #container -->
<?php thematic_sidebar() ?>
<?php get_footer() ?>