Hi MichaelH, Thanks for your input, I tried that, it works but my requirement is a bit different
I am looking to add this code to index.php, category.php
country is added as a custom field.
The site works as usual wp install, and when the user selects a particular country then it keeps the country in a session variable. Again the site works normally but only the posts for that country are displayed.
I added this
$args=array(
'showposts' => 3,
'category__in' => array(3,5),
'caller_get_posts'=>1
'meta_key' => 'country',
'meta_value' => 'MY SESS Variable here'
);
It is not working when I select a category (I replaced ‘category__in’=>$catid with is_category() )