- This topic is empty.
January 2, 2011 at 11:38 am #31132
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.January 2, 2011 at 12:42 pm #67846JohnnybMember
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.January 2, 2011 at 1:05 pm #67848
not sure what you meanJanuary 3, 2011 at 12:20 am #67726JohnnybMember
Can you post your loop code here?January 3, 2011 at 1:09 am #67727January 3, 2011 at 1:53 am #67728clokey2kParticipant
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.January 3, 2011 at 3:46 am #67731
it shows actual time only.. no date..January 3, 2011 at 7:55 am #67735BobMember
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_TimeJanuary 3, 2011 at 10:56 am #67741
thank you guys so much. i totally appreciate the help. i’m learning a lot here
- The forum ‘CSS’ is closed to new topics and replies.