Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] How to output the Revision - Updated date / time on Pages


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Feb 23, 2010, 06:46 AM
Toan
 
2 posts · Feb 2010
Help [SOLVED] How to output the Revision - Updated date / time on Pages

I'm currently applying the following to my bylines:
Code:
Published: %date('F jS, Y #a#t g:i A')%
It works great for the published date & time, but is there a way to also output a page's revised or last updated date?
  #2  
Old Feb 23, 2010, 07:33 AM
juggledad's Avatar
juggledad
 
21,687 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
if you want the update date, you have to add some code. Here is a reference for teh info you will need http://codex.wordpress.org/Function_Reference/get_post
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Feb 23, 2010, 08:03 AM
Toan
 
2 posts · Feb 2010
Thanks

That url sparked an idea, which ultimately lead my search to this one: Template Tags/the modified date

I ended up with this code that suits my needs:
Code:
<p>Revised: <?php the_modified_date('F j, Y'); ?> @ <?php the_modified_date('g:i A'); ?></p>
  #4  
Old Feb 24, 2010, 05:28 AM
juggledad's Avatar
juggledad
 
21,687 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
I wish my memory was better...sigh... you could also just use the option
Quote:
%date-modified('F jS, Y')% - Same as above but displays the post's last modfied date instead of its creation date.
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
date / time link in comments janey73 Comments, trackbacks & pings 15 May 7, 2010 06:38 PM
How do I correct the date and time on my page? lmt Center area post/pages 1 Feb 11, 2010 06:13 AM
How to put current date/time immediately under header image? mptorr Header configuration & styling 4 Aug 13, 2009 12:27 PM
Weird phrase showing up instead of comment time / date Taquoriaan Comments, trackbacks & pings 0 May 15, 2009 10:49 PM
comment time/date info shady Comments, trackbacks & pings 1 Feb 27, 2009 04:38 AM


All times are GMT -6. The time now is 06:53 PM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.