Not all features of Genesis are included in the official documentation. The ability to instantly produce the ‘last updated’ date is one of these hidden features.
On most WordPress sites, each Post is labeled with the date it was originally published. Genesis makes it easy for you to change this to the date it was last updated if you want.
The shortcode to access the ‘last updated’ date is
[post_modified_date]. It’s not documented in the Genesis Shortcode Reference, but that doesn’t mean you can’t use it.
You can actually use the shortcode wherever you like, including in the body of your Post. The most logical place to put it is in the entry meta, instead of the original publication date.
You can edit the entry meta by installing the below code onto your Genesis site (here’s how).
By default, Genesis will use your site’s preferred date format (configured in your admin area in Settings > General), but it gives you the option of specifying a custom date format.
As an example, you might choose to simply display the year that your Posts and/or Pages were last updated.
Add to your shortcode
Y outputs the year; replace this with whichever date format you need).
Relative Time Difference
Instead of displaying a date, Genesis gives you the option of displaying a relative time difference – e.g. .
All you need to do is add
format="relative" to your shortcode.
Before and After
[post_modified_date] outputs the date wrapped in
<time class="entry-modified-time"> (HTML5) or
<span class="date updated time"> (XHTML). To add extra content within this markup, use the
[post_modified_date] has been included since version 2.1.0.
[post_modified_date] is located in lib/shortcodes/post.php.
Relevant tutorials from the Genesis community.