Made a custom cycle of outputting posts from the desired category on the main via wp_query.
Then he noticed that when you click on the label at the bottom of the post, WordPress displays all the posts of the category, and not specifically this label.
Same thing for query_posts.
When I put a normal cycle, everything is fine.
Cycle example:
<?php global $wp_query; $wp_query = new WP_Query(array( 'posts_per_page' => '10', 'post_type' => 'post', 'category__in' => '1', 'paged' => get_query_var('paged') ?: 1 )); while( have_posts() ) { the_post(); ?> <article class="post"> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <div class="post__info"> <span class="post__info--date"><?php echo get_the_date(); ?></span> <span class="post__info--comments"><a href="<?php the_permalink(); ?>#comments">комментировать</a></span> </div> <?php the_content(); ?> <p class="post__hashtag"><?php the_tags($before=""); ?></p> </article> <?php wp_reset_postdata(); // reset the query ?> <?php } ?>