Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   Last Update (http://forum.bytesforall.com/showthread.php?t=647)

jockoe Mar 4, 2009 04:45 PM

Last Update
 
Hi Flynn,

My site shows the current date...
http://tracyandcarol.com/the_tracy_t...3/date_mod.jpg


How do I add to it the "date last modified" similar to the NY Times?
http://tracyandcarol.com/the_tracy_t...03/nytimes.jpg

I've found the line of code where I think it needs to be added in my bfa_header_config.php file.
PHP Code:

'<p class="tagline">' date('l, F j, Y') . '</p>' '' ) . 

I'm trying to follow the examples for the
Code:

getlastmod()
method at http://us2.php.net/manual/en/function.getlastmod.php, but I do not know any PHP coding at all. How do I get "Last Update: xx:xx am/pm my-time-zone"?

Flynn Mar 6, 2009 12:46 PM

That PHP functions would only cover the last modified date for the raw PHP file, it would not be related to anything Wordpress.

There's a template tag to display the last modified date for a given post, but none to display the last modified date overall. It can certainly be done in some way but nothing I could easily outline right now. It's probably best to look for a plugin for this, then put the plugin's PHP output code at the appropriate place in the theme's header.php or bfa_header_config.php


All times are GMT -6. The time now is 06:11 AM.

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