Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] How to output the Revision - Updated date / time on Pages (http://forum.bytesforall.com/showthread.php?t=5991)

Toan Feb 23, 2010 06:46 AM

[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?

juggledad Feb 23, 2010 07:33 AM

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

Toan Feb 23, 2010 08:03 AM

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>

juggledad Feb 24, 2010 05:28 AM

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.


All times are GMT -6. The time now is 01:57 AM.

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