Date appearing in 1 post only

Asked

Viewed 71 times

1

Hello guys I’m with a problem that when I do several posts on the same day it would be the same date it only appears in the last post

.inserir a descrição da imagem aqui

    <article  id="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>
  • 1

    This is wordpress right there?

  • 1

    yes this is wordpress @rray

1 answer

-1

Hello, try to use...

echo get_the_date();

in place of

the_date();

Browser other questions tagged

You are not signed in. Login or sign up in order to post.