One problem seems always to lead to another!
in_category() actually worked! but it also changes my home page, which is set up to work with an options panel.
I know I need to tell it that if it's the home page, to use the blue stylesheet - but I'm not sure of the syntax.
=========================
// custom homepage loop
function authorsite_indexloop() {
// load the custom options
global $childoptions;
foreach ($childoptions as $value) {
$$value['id'] = get_option($value['id'], $value['std']);
}
query_posts("posts_per_page=4&cat=" . $authorsite_feature_cat);
$counter = 1;
if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>">
<?php thematic_postheader();
if ($counter == 1 && has_post_thumbnail() && !is_paged()) {
the_post_thumbnail('homepage-thumbnail');
} ?>
<div class="entry-content">
<?php the_excerpt(); ?>
" class="more"><?php echo more_text() ?>
<?php $counter++; ?>
</div>
</div><!-- .post -->
<?php endwhile; else: ?>
<h2>Eek</h2>
<p>There are no posts to show!</p>
<?php endif;
wp_reset_query();
}
//alternate stylesheet for blog page
function my_stylesheet($content) {
if (in_category('3')) {
$content = "\t";
$content .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"";
$content .= get_bloginfo('stylesheet_directory') . "/style-blog.css";
$content .= "\" />";
$content .= "\n\n";
}
return $content;
}
add_filter ('thematic_create_stylesheet', 'my_stylesheet');
================================
I'd still like to get this one category into the options panel as well... The website owner is now saying "just leave it all blue," but I'm determined! I've gone this far with it, I want to get it completely done.
Thanks so much for your help helgatheviking.