category_name=thenameofmycategory (on the archive page)
Query String:s=searchwords (on the search page)
Here is the relevant code on the search page:
<?php query_posts($query_string . '&caller_get_posts=0'); ?>
<?php if(have_posts()) : ?>
<?php $cat = get_query_var('cat'); ?>
<?php while(have_posts()) : the_post() ?>
<?php if (!in_category($cat) && $cat != 0) continue; ?>
<?php if (get_option('cp_search_ex_pages') == 'yes') { if (cp_is_type_page()) continue; } // exclude pages ?>
<?php if (get_option('cp_search_ex_blog') == 'yes') { if (in_category(CP_BLOG_CAT_ID) || cp_post_in_desc_cat(CP_BLOG_CAT_ID)) continue; } // exclude blog posts ?>
<?php if (is_sticky()){ ?>
<div class="whiteblock feature_bg">
<?php } else { ?>
<div class="whiteblock can_chg_bg">
<?php } ?>
Not sure if that helps?
Cheers,
Kim