Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WordPress – why doesn’t the date show up if the posts are from the same date?

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #31132
    redhare
    Member

    hey guys,

    i did the loop for wordpress but if the posts are from the same day.. the date doesn’t show up for the same posts.. pls help.

    http://www.safaritreasure.com

    #67846
    Johnnyb
    Member

    It’s likely because of the dates position within the loop. Try moving it to directly above the header of each post in the loop.

    #67848
    redhare
    Member

    not sure what you mean

    #67726
    Johnnyb
    Member

    Can you post your loop code here?

    #67727
    redhare
    Member






    Latest Update











    ">


























    #67728
    clokey2k
    Participant

    Swap ‘the_date()’ with ‘the_time()’.

    ‘the_date()’ will only output once per day in the loop. ‘the_time()’ will give the date every time.

    #67731
    redhare
    Member

    it shows actual time only.. no date..

    #67735
    Bob
    Member

    If you want to show the date, use:

    the_time('l, F j, Y');

    That will output for example, Friday, September 24, 2004.
    the l parameter stands for the day of the week, the F stands for name of the month, j stands for day of the month and Y stands for the year.

    Read here for about date formatting: http://codex.wordpress.org/Formatting_Date_and_Time

    #67741
    redhare
    Member

    thank you guys so much. i totally appreciate the help. i’m learning a lot here

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘CSS’ is closed to new topics and replies.