I'm trying to exclude a category from my tag template. Searching gives me nothing and kinda stuck. When I add the code below to my tag template it shows all posts... and I really would like to show all posts with a specific tag, but not the ones from category ID 433.
<?php $query = new WP_Query( array('cat' => -433, ) ); ?>
<?php if ($query->have_posts()) : ?>
<?php while ($query->have_posts()) : $query->the_post(); ?>
So, this is not working :) Also tried this one:
$query = new WP_Query( array( 'category__not_in' => array( 433 ) ) );
Also showing all posts. Hope anyone got an idea.