Genesis Themes

  • Home
  • Genesis Tutorials
  • WP Tutorial
  • Twenty Fifteen Theme
  • Social Media
  • WP Plugins

How to Show Last Updated Date in Genesis Theme

Here's a code snippet to display last updated post date in any Genesis child theme.When ever you modify a post, it will show last updated date in the Genesis post info.
1.Go to dashboard
2.Select appearances then editor
3.Open functions.php file and add below code.

The following code should be added to your Genesis child theme's functions.php file.

//* show last updated date to the post info in genesis 2.0 HTML5 theme
add_filter( 'genesis_post_info', 'gt_post_info_filter' );
function gt_post_info_filter($post_info) {
 if (get_the_modified_time() != get_the_time()) {
$post_info = $post_info . '<br/>Last updated on: ' . the_modified_date('F j, Y', '', '', false);
}
return $post_info;
}

Related Posts

  • Display WordPress Comment Box Above Comments in Genesis
  • Show Related Posts by Category in Genesis Theme
  • Customize or Remove Genesis Footer Credits
  • Display Related Posts by Tags in Genesis Theme
  • Change Search Box Text in Genesis
  • Genesis Exclude Posts in Specific Category from Home Page / Blog Page
  • How to Remove Post Date in Genesis Theme
  • How to Change Featured Image Size in Genesis
  • Move Genesis Navigation Menu Above Header
  • Show Related Posts With Thumbnails in Genesis

Bluehost and Siteground Coupons for January 2016.

Best Premium WordPress Themes from TemplateMonster
download wordpress themes from MonsterOne

Categories

  • Blog
  • Blogger
  • Genesis Tutorials
  • Social Media
  • Top Websites
  • Twenty Fifteen WordPress Theme
  • WordPress Plugins
  • WordPress Tutorial