I'm a code dummy, but I'm learning. How do I add the time to each of my posts? Right now all I get is the date.
What is the code and where do I put it?
Thanks in advance.
I'm a code dummy, but I'm learning. How do I add the time to each of my posts? Right now all I get is the date.
What is the code and where do I put it?
Thanks in advance.
Take a look at Template_Tags/the_time
You'll probably want to use that in your theme's index.php file.
Stepping into Templates
Template Hierarchy
Stepping into Template Tags
Editing Files
Check out this page for more about how WP handles dates and times, and this page for a list of all the formatting options you have available in regards to date and time. Remember that you'll probably want to change the date and time format for index.php (Main Index Template), single.php (Single Post), and page.php (Page Template), and possibly others depending on your theme.
Got it! Thanks a lot. Now for the next 30,000 questions. :)
This is a dupe thread.. but here is the real answer I posted over here
http://wordpress.org/support/topic/188857?replies=4
Sorry I cant STAND when people dont answer the actual question asked but give you links to 50 different things
Here is "THE answer" for the next visitor that happens on this thread and gets confused.
go to THIS dir whereever it is
wp-content\themes\default
(assuming default theme which if you are new like I am.. thats what theme you are using)
the file in there marked index.php open it in a text editor.
find
<?php the_time('F jS, Y') ?>
before it put this
Time posted: <?php the_time('g:i a'); ?>
make sure there is a SPACE between the > and the < or it will be jammed together.
if you want to put the time AFTER the date.. well then with a space.. put
Time posted: <?php the_time('g:i a'); ?>
behind
<?php the_time('F jS, Y') ?>
so.. there you go.. if you want to know more.. check those links out.. but it is a simple problem with a simple solution.
This topic has been closed to new replies.