Last active
February 26, 2016 02:55
-
-
Save QROkes/29e00618d75aceba0ff9 to your computer and use it in GitHub Desktop.
Add last updated date to the post info in entry header (Wordpress - Genesis Framework)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Add last updated date to the post info in entry header (requires HTML5 theme support) | |
add_filter( 'genesis_post_info', 'qr_post_info_filter' ); | |
function qr_post_info_filter($post_info) { | |
if (get_the_modified_time() != get_the_time()) { | |
$post_info = $post_info . '<br/>Last updated on: ' . the_modified_date('j/m/Y', '', '', false); | |
} | |
return $post_info; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment