Hi everyone,
I'm new to the forum but have been combing over the guidance within for a couple months now and have built a couple sites using TS child themes. Thanks Ian and Chris and others! My question is probably very simple to answer: How do I make a category template? Say for cat_ID=3? I would like to put div's in and configure with css.
ThemeShaper Forums » Thematic
Category template
(2 posts)-
Posted 3 years ago #
-
OK, I figured out the styling of a category and I made a page template but the contents show in the wrong area. Here is the code:
<?php
/*
Template Name: Signup Template
*/
include( TEMPLATEPATH . '/index.php' ); //this loads the thematic parent framework index.php
?>
<?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 thematic_navigation_above();?>
<?php get_sidebar('index-top') ?>
<?php thematic_above_indexloop() ?>
<?php thematic_indexloop() ?>
<?php
function childtheme_second_loop() {
if (is_page(sign-up)) {
query_posts("cat_ID=3&showposts=3");
thematic_index_loop();
} else {
return;
}
}add_action('thematic_below_indexloop', 'childtheme_second_loop' ); ?>
<?php thematic_below_indexloop() ?>
<?php get_sidebar('index-bottom') ?>
<?php thematic_navigation_below();?>
</div><!-- #content -->
</div><!-- #container --><?php thematic_sidebar() ?>
<?php get_footer() ?>What happens is the posts show up outside the wrapper below the page. Any ideas?
Posted 3 years ago #
Topic Closed
This topic has been closed to new replies.