F
F
fantazerno2018-06-29 12:56:43
WordPress
fantazerno, 2018-06-29 12:56:43

How to get the date of an entry in WORDPRES?

Good afternoon!
Weird bug, didn't cause any problems before.

<?
    $args = array(
    'cat'=> 5,
    );
  ?>
  <? query_posts($args);?>
  <? while (have_posts()) : the_post(); ?>
      <?=get_the_date('j F Y'); ?>
  <? endwhile; ?> 
  <? wp_reset_query();?>

In this cycle, I can not get the dates of the posts.
But in the template of one post outside the cycle, there is a date. Tell me which way to dig?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question