In the previous post it was scrolled on:
By basing upon that today I am going to put an important post by which you will able to Show the Last Updated on when you are using the genesis now.
Also read:
So friends lets start the journey to show your latest updated date in the post title below.
N.B.: This process works only on the genesis theme.
Part-1
By The Simple Edit Plugin
Description
This plugin creates a new Genesis settings page that allows you to modify the post-info (byline), post-meta, and footer area on any Genesis theme. Using text, shortcodes, and HTML in the textboxes provided in the admin screen, these three commonly modified areas are easily editable, without having to learn PHP or write functions, filters, or mess with hooks.
- Install Genesis Simple Edits and activate it.
- On the side bar click on Genesis >> Simple Edits.
Now it shows you:
Entry Meta(above Content):
[pre]Last updated on By 1 Comment [/pre]
Now you have to modify the Entry Meta to:
[php]Last updated on By 1 Comment [/php]
Now it will show you:
Scroll down to bottom and click on Save Settings.
Now your all posts are showing you the Last updated Dates like:
All are done in the genesis theme.
Part-2
By Code Snippet
By the way if anyone not prefer to use plugin, they require to do some edit in function.php file of their genesis theme to get this Last Update on.
N. B.: Before you edit the function.php, please make sure backup. Otherwise you may get loss by file corrupt.
- Go to Themes in Network (for Multisite) >> Editor.
- Add the following code at the end of function.php and click update.
[php]add_filter( ‘genesis_post_info’, ‘sp_post_info_filter’ );
function sp_post_info_filter($post_info) {
if ( !is_page() ) {
$post_info = ‘Last Updated on by 1 Comment ‘;
return $post_info;
}}[/php]
[…] How to Show The Last Updated Date on Any Genesis Theme Post […]