Date appearing in 1 post only

1

Hello everyone, I have a problem that when I make several postings the same day it would be the same date it only appears in the last post

<articleid="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article">

                             <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>

                          <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">      <div class="box-index" style=" background-image:url(<?php echo $image[0];?>); "></div></a>

                               <b><a class="index-tro"href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></b><br />
                              <div class="datee"> <?php the_date(); ?> </div> 
                                <div class="linhapon"></div>
                                <h2 class="resum"><?php the_excerpt(); ?></h2>
                                <!--<?php
    if ( get_the_post_thumbnail( $post_id ) != '' ) {
        the_post_thumbnail();
    } else {
        echo get_first_image();
    }
?>-->

                            </article>
    
asked by anonymous 10.12.2015 / 17:06

1 answer

-1

Hello, try to use ...

echo get_the_date();

instead of

the_date();
    
10.12.2015 / 18:36