Adds two template tags `latest_post_date()` and `latest_post_modified_date()`.
| Author: | Simon Wheatley (profile at wordpress.org) |
| WordPress version required: | 2.0 |
| WordPress version tested: | 2.6.2 |
| Plugin version: | 1.01 |
| Added to WordPress repository: | 27-10-2008 |
| Last updated: | 27-10-2008
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | http://wordpress.org/extend/plugins/has-more/ |
| Total downloads: | 2 295 |
| Active installs: | 10+ |
![]() Click to start download |
|
Adds two template tags, latest_post_date() and latest_post_modified_date(), the first echoes the most recent post publication date, the second echoes the modification date of the most recently modified post.
Each template tag takes two params: $date_format, standard WP date formatting string (defaults to the default date formatting for your WP blog), and $echo, display the date, if TRUE, or return the date to be used in PHP, if FALSE, (defaults to TRUE).
For example: <?php latest_post_date( 'l, F j, Y', TRUE ); ?> would return a date similar to Friday, September 24, 2004 for use in PHP. Another example: <?php latest_post_date(); ?> would echo a date in the default formatting for your WP blog.
Is this plugin lacking a feature you want? I'm happy to discuss ideas, or to accept offers of feature sponsorship: contact me and we can have a chat.
Any issues: contact me.
