My client wants a time stamp on all posts. However, the timestamps for all articles listed in the feature stories are incorrect. Everywhere else on the homepage has timestamps associated with each article. For the featured stories, timestamps seem to all be identical. The single post is displaying it fine. As are many sections of the homepage. The file modified to show the timestamps was td_module_2.php . I am using <?php echo the_time(); ?>
Forgot to post url: http://conservativevoiceofthepeople.com/
hi,
the dates that you see near the articles are the dates and time when the article is created (http://screencast.com/t/P7iYNCFmV) , but you probably already know this.
I see that the time is the same on the homepage but I cannot offer you support for your custom code.
I think you already found this: http://codex.wordpress.org/Function_Reference/the_time
Thanks for you message.
Radu A.
I am using the same code on the featured stories area that I am using in the latest stories area but the times are different. Why is this? Makes no sense whatsoever.
Thanks. I have updated the theme to the newest version and no custom code has been added. My client wants the time stamp for each post to be displayed. How can this be done? Or does your theme not support it? I need to know so my client will have a definitive answer.
Thanks!
Victoria
Hi,
Do you mean to have the date more detailed like this: http://screencast.com/t/Fubcwe3k9A
You need to set from here: http://screencast.com/t/uTndukU2lp
I use: M j, Y g:i A for other formats read here: http://codex.wordpress.org/Formatting_Date_and_Time
Thanks!
Yes, the settings are set accordingly but the time is not showing up. How do I make the time show on the posts?
Make sure you entered the full date and time format code that he shared into the Date custom box, as pictured.
http://screencast.com/t/wgFVrkihMo
Also, make sure you have reverted any code changes regarding this topic back to defaults so it will show up.
I tested it on my demo by adding in the time format string to the date custom string and it shows on the home page blocks, the sidebar blocks, the category archives and single.php with no other changes needed.
Home Page Blocks: http://screencast.com/t/qrPsOkanwZqD
Single.php: http://screencast.com/t/8ZpKVgjs56
Category Archive: http://screencast.com/t/9Gl4ASb4GM
Sidebar Blocks: http://screencast.com/t/WBKDPhyLS
-
This reply was modified 12 years by
Bryson T.
Thank you so much!! The missing thing for me was putting the entire date AND time string in the date section. Have a great weekend!!