Support » Fixing WordPress » Function the_time() displays January 1 on all posts

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi adamLaughlin,

    Fundamental question: if you take a look at the post list in your dashboard, are the dates correct?

    Oh, I get it. You should use:

    <h4 class="mpr-list-date"><?php the_time('d F Y'); ?></h4>

    m in date formatting stand for numeric representation of the month, so there’s no wonder that it always shows 1st as January is the first month.

    Oh wow so it’s a complete mistake, thanks a lot for taking a look at my request.

    Saved me probably…. two hours?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Function the_time() displays January 1 on all posts’ is closed to new replies.