I am trying to show a list of posts that are related to category X and tag Y.
I’ve tried the following code:
$args = array(
'posts_per_page' => 4,
'tag_id' => $tag_id,
'cat' => $cat_id,
);
query_posts($args);
but it doesn’t work correctly and returns all the posts in the co\ategory.
Would love to hear any insight you might have