enter image description here

has this problem. On the page to display posts for the current tag, the tags are displayed incorrectly posts. If the tags of the posts are the same then they are added together and displayed for a single post, and for another – no, what’s the matter ? Tags deduce by using:

<?php
/**
 * The template for displaying Tag Archive pages.
 *
 */

get_header(); ?>
<div class="background-type-2">
 <div class="main-content">
  <div class="line-ver">
   <div class="wrapper">
    <?php get_sidebar('blog'); ?>
    <div id="container">
     <div id="content" class="blog" role="main">
       <?php
       if ( have_posts() ) {
         while ( have_posts() ) {
          the_post(); ?>
          <article id="post-<?php the_ID(); ?>"<?php post_class(); ?>>
           <div class="post_headline">
             <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
           </div>
        <div class="post-exp">
          <?php the_excerpt(); ?>
        </div>
        <div class="tags">
          <?php the_tags('',''); ?>
        </div>
      </article>
      <?php }
      if (function_exists('custom_pagination')) {
        custom_pagination($query->max_num_pages,"",$paged);
} // end while
} // end if

?>
</div><!-- #content -->
</div><!-- #container -->
</div>
</div>
</div>
</div>
<?php get_footer(); ?>

Read more here: Why not correctly display tags in your wordpress site?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: