• Resolved phenomenal

    (@phenomenal)


    On my website, when I put in the code ‘<?php the_date(); ?>’ it shows the date for the newest post, but not for the older posts. Even if it was added 5 minutes after. Is the code wrong, or what? Do any of you know how to fix this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • @mercime

    (@mercime)

    Did you put the code in single.php or index.php or archive.php? Then the information should appear in your site whenever you go to the single post page or home page or archive page.

    Thread Starter phenomenal

    (@phenomenal)

    It’s on the page that has all of the coding for the main posts; index.php.

    So it’s on the right page and everything, but it just won’t show older dates.

    iridiax

    (@iridiax)

    http://codex.wordpress.org/Template_Tags/the_date

    “SPECIAL NOTE: When there are multiple posts on a page published under the SAME DAY, the_date() only displays the date for the first post (that is, the first instance of the_date()). To repeat the date for posts published under the same day, you should use the Template Tag the_time() with a date-specific format string.”

    http://codex.wordpress.org/Template_Tags/the_time

    Thread Starter phenomenal

    (@phenomenal)

    THANK YOU! That worked, and now everything works for me. Thank you so much.

    Thanks! Good help.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Date Problems’ is closed to new replies.