I'm having weird behaviour in WP loop on archive-issues.php
The post title is coming through correctly on all of them, but terms and permalink are getting messed up. %issues_categories% is not getting rewritten with anything on some of the posts and this behaviour comes up once there are posts with matching taxonomy and taxonomy gets grouped under some posts in this manner tax1,tax1,tax1 - like it's pulling it from the rest of the posts.
this is my loop on archive-issues.php , running in circles, let me know if you've come across similar and how you managed to fix this
<?php
query_posts(array(
'post_type' => 'issues',
'post_status' => 'publish',
'orderby' => 'date',
'order' => 'DESC'
));
?>
<?php
while (have_posts()) : the_post();
?>
<div class="tile">
<h4><?php echo the_terms($post->ID, 'issues_categories'); ?></h4>
<h3><?php the_title(); ?></h3>
<p class="link"><?php echo $card_link; ?></p>
<a class="abs-overlayer" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><!-- empty --></a>
</div>
<?php endwhile;
wp_reset_query();
?>