Show Modified Date
If you want to show the modified date when using the Genesis framework, you can use the snippet below:
add_filter( 'genesis_post_info', 'wpkb_show_updated_date' );
function wpkb_show_updated_date($post_info) {
if (get_the_modified_time() != get_the_time()) {
$post_info = $post_info . '<br />Updated at ' . the_modified_date('d.m.Y', '', '', false);
}
return $post_info;
}
The modified date is only shown, if it differs from the creation date.
Related Posts
- Change Post Order to Last Modification Date
- Change Post Order to Order by Last Modified Posts
- Laravel 5.5 at Codeanywhere
- Shortcode for Listing the Recent Posts or CPTs
- Shortcode Showing the Latest Posts Using Timber
- Fix "Call to a member function format() on string" in Laravel
- Modify 'Read more...' link