Witam,
mam w WordPressie stronę widoku wpisów, to co się wyświetla po klinięciu w blog.
I coś z tym kodem jest nie tak, bo kawalki z wpisami się dubluję.
Wyświetla je po kilka razy te same
<?php get_header(); ?>
<!-- Start Blog
============================================= -->
<div class="blog-area full-width bg-gray default-padding">
<div class="container">
<div class="blog-items">
<div class="row">
<!-- Single Item -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class=" col-sm-12 col-md-6 col-lg-4 equal-height" style="height: 555px;">
<div class="item">
<div class="thumb">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail(); ?>
</a>
<div class="tags">
<?php the_tags (); ?>
</div>
</div>
<div class="info">
<h4>
<?php the_title(); // tytuł postu ?>
</h4>
<p>
<?php the_excerpt(); // treść postu ?>
</p>
<div class="read-more">
<a href="<?php the_permalink(); ?>" class="more-btn">Zobacz więcej<i class="fas fa-angle-double-right"></i></a>
</div>
</div>
</div>
</div>
<!-- End Single Item -->
<?php endwhile; endif; ?>
</div>
</div>
</div>
</div>
<!-- End Blog -->
Nie wiem dlaczego ?