Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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


  #1  
Old Feb 23, 2010, 06:46 AM
Toan
 
2 posts · Feb 2010
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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 05:04 PM.


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