Hmm sounds difficult.. actually my category.php loads theme templates like this:
//category.php
<?php
if (is_category(1)) {
include(TEMPLATEPATH . ‘/category-1.php’);}
?>
//category-1.php
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
So how to change that query to load post based on custom field values?