Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
angal
tagDiv Member

Hi, thanks a lot.

It’s working, but it affects all the queries. I want to add a second loop in category.php to show posts not included in first loop. For example, in the main loop show posts with tag_id 32, and second loop show posts without tag_id 32.

When i add your action to functions php…only filtered posts are loaded.

Could it be possible?

My code in category.php is:
$args1 = array(
'cat' => $current_category_id,
'tag_id' => 32
);

$query1 = new WP_Query($args1);

while ( $query1->have_posts() ) {
$query1->the_post();
echo '

  • ' . get_the_title() . '
  • ';
    }

    Thanks a lot!

    Viewing 1 post (of 1 total)