• Is there a way I can get the date to be displayed in every post on a page, even if they were made on the same day?

    I downloaded a theme, and it seems to have been set up so that if there are two posts made in a category on the same day, the date will only show up in the most recent post.

    Here’s the code (I think):

    <div class=”cite”>posted by <?php the_author(); ?> — <?php the_date(”,”,”); ?> at <?php the_time() ?>

    Can anyone see what might need to be changed?

Viewing 1 replies (of 1 total)
  • Thread Starter alile

    (@alile)

    Nevermind. I managed to figure out a search term that came up with something. (didn’t know what to search for before).

    Replaced:

    <?php the_date(”,”,”); ?> at <?php the_time() ?>

    With:

    <?php the_time(‘F j, Y @ g:i a’); ?>

    And now it displays the date and time on every post, regardless of whether they were posted on the same day. ??

    Sorry for the bother.

Viewing 1 replies (of 1 total)
  • The topic ‘Getting date to display in every post made on the same day?’ is closed to new replies.