(Building from 0.9.7.4 rev709)
If you want a conditional childtheme_override
, for example, you want to use the childtheme_override_category_loop
only on certain category pages, where does the condition need to occur. I tried inserting the condition within the childtheme_override
but that didn't work entirely as intended, i.e. it affected ALL my category pages:
/*Custom Category Loop for certain Categories*/
function childtheme_override_category_loop() {
if (is_category('drawing')|| is_category('painting')) {
while ( have_posts() ) : the_post() // Start the loop:
?>
<div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>">
<?php thematic_postheader(); ?>
<?php get_the_image( array( 'custom_key' => array( 'Thumbnail', 'thumbnail' ), 'default_size' => 'thumbnail' ) ); ?>
<div class="entry-content">
<?php thematic_content(); ?>
</div>
<?php thematic_postfooter(); ?>
</div><!-- .post -->
<?php endwhile; // loop done, go back up
}
}