How to show Last updated Date for posts in any Genesis theme

A few days ago, I’ve published a post on how to show last updated date for posts in WordPress – In this tutorial i’m going to show you how to accomplish the same functionality on blogs that’s running on Genesis theme.

If you’re regularly updating your blog posts, it’s a good idea to show Last-Updated/ Modified date in the post byline rather than the date it was originally published.

First of all, why would you want to do this?

It has two main benefits:

  • The first is that it increases the Click-Through Rate (CTR) from SERPs.
  • Secondly, it gives the impression to the reader that your content is relevant and up-to-date.

If you use the Genesis theme, it is very simple and only takes about 2 minutes to do. Just follow any one of the methods below.

Showing the Last Updated/Modified date for posts in Genesis Theme Framework

Method 1: Using Genesis simple edits Plugin

Important note: This plugin was designed for Genesis themes only. 

  1. Install and activate Genesis simple edits plugin.
  2. Navigate to Genesis > Simple edits from the sidebar.
  3. Add the following shortcode in Entry Meta (above content) field.

Last updated on [post_modified_date] By [post_author_posts_link] [post_comments] [post_edit]

Last updated on [post_modified_date] By [post_author_posts_link] [post_comments] [post_edit]

4. click save changes.

Method 2: Code Snippet to show Last updated date in Genesis Child Themes

If you prefer not to use a plugin, you’d have to edit the function.php file of your theme to make these changes. Make sure to backup your functions.php file before editing it.

Go to Appearance > Editor in your WordPress dashboard, add the following code at the end of functions.php and click Update. 

add_filter( ‘genesis_post_info’, ‘sp_post_info_filter’ ); function sp_post_info_filter($post_info) { if ( !is_page() ) { $post_info = ‘Last Updated on [post_modified_date] by [post_author_posts_link] [post_comments] [post_edit]’; return $post_info; }}

add_filter( ‘genesis_post_info’, ‘sp_post_info_filter’ ); function sp_post_info_filter($post_info) { $post_info = ‘Last Updated on [post_modified_date] by [post_author_posts_link] [post_comments] [post_edit]’;

It should look something like this:

That’s it!  If you have any questions, please leave a comment below.

Leave a Comment