i created a taxonomy page from archive.php , working based on thematic frame work. i tried a lot to make the sidebar working but it show nothing and even using firebug its not exist !
<?php
/**
* Template Name: MEDIT
*
* …
*
* @package Thematic
* @subpackage Templates
*/
// calling the header.php
get_header();
// action hook for placing content above #container
thematic_abovecontainer();
?>
<div id="container">
<?php
// action hook for placing content above #content
thematic_abovecontent();
// filter for manipulating the element that wraps the content
echo apply_filters( 'thematic_open_id_content', '<div id="content">' . "\n" );
?>
<?php
$term_slug = get_query_var( 'term' );
$taxonomyName = get_query_var( 'taxonomy' );
$current_term = get_term_by( 'slug', $term_slug, $taxonomyName );
$args = array( 'child_of' => $current_term->term_id, 'hide_empty'=>false);
$terms = get_terms( 'tagportifolio', $args);
$assoc = taxonomy_image_plugin_get_associations();
if (!empty($terms)):
?>
<?php /*?><?php
// calling the standard sidebar
dynamic_sidebar('cs-project-main-category');
?><?php */?>
<?php foreach( $terms as $child ): ?>
<?php thematic_abovepost(); ?>
<div id="cat-<?php echo $child->term_id; ?>">
<?php
if(array_key_exists( $child->term_taxonomy_id, $assoc )){
echo wp_get_attachment_image( $assoc[$child->term_taxonomy_id], array(), false, 'thumbnail');
}
?>
<h1 class="entry-title"><a href="<?php echo get_term_link( $child->name, $taxonomyName );?>">
<?php echo $child->name; ?></a ></h1><br/>
</div>
<?php thematic_belowpost();?>
<?php endforeach; ?>
<?php
else:
// start the loop
?>
<?php /*?><?php
// calling the standard sidebar
dynamic_sidebar('cs-sub-cat-sidebar');
?><?php */?>
<!--</div> #content -->
<?php
endif;
?>
<?php
// action hook for placing content below #content
thematic_belowcontent();
?>
</div><!-- #container -->
<?php
// action hook for placing content below #container
thematic_belowcontainer();
// calling the standard sidebar
thematic_sidebar();
// calling footer.php
get_footer();
?>
any idea what is missing in my code please ?
thematic_sidebar()? both of your calls todynamic_sidebarare commented out. – Milo Aug 6 '12 at 13:50