Mô tả
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.
Cài đặt
The plugin is simple to install:
- Download
latest-post-date.zip
- Unzip
- Upload
latest-post-date
directory to your/wp-content/plugins
directory - Go to the plugin management page and enable the plugin
- Give yourself a pat on the back
Đánh giá
There are no reviews for this plugin.
Người đóng góp & Lập trình viên
“Latest Post Date” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “Latest Post Date” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
v1 2008/10/27
- Plugin first released
v1.01 2008/10/27
- Removed various stray error logging code