It is actually hilarious however my the_date()
and the_time()
capabilities present the present date and time as an alternative of the put up’s publication time, subsequently at every refresh of the web page, the time modifications in line with the precise time and date.
I’m utilizing these capabilities in a single template for a customized put up within the loop, like so:
<?php if(have_posts()): ?>
<?php whereas(have_posts()): the_post(); ?>
<h3> <?="Titre du projet"?> </h3>
<?php the_title(); ?>
<h3><?="Description"?></h3>
<?php the_content(); ?>
<p> <?php the_date(); ?> à <?php the_time(); ?>
<?php endwhile?>
<?php endif;?>
What’s incorrect? I attempted different related capabilities or get put up date within the $put up
object, however of their format, the date and time are inseparable. and I would like them individually.
Thanks.