• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

WP-ME.com

WordPress Plugins, Theme Collections, WordPress Hosting Reviews, Tutorials & More.

  • WP-ME.com
    • WP-ME.com Blog
    • About
    • Contact Us
    • Advertise
    • Archives
  • WordPress
    • Why WordPress
    • WordPress vs. Blogger
    • WordPress Ping List
    • WordPress Beginner Mistakes
    • Changing WordPress Admin Username
    • How to Edit wp-config.php File
    • More..
  • Themes
    • Free WooCommerce Themes
    • WordPress Coupon Themes
    • Photography WordPress Themes
    • RTL WordPress Themes
    • Online WordPress Theme Detectors
    • More..
  • Plugins
    • Best Free WordPress Plugins
    • WordPress Table Plugins
    • Free WordPress Lazy Load Plugins
    • Free WordPress Slider Plugins
    • WordPress Plugins for Business Sites
    • Best WordPress SEO Plugins
    • WordPress Plagiarism Checking Plugins
    • Free WordPress Security Plugins
    • More..
  • WordPress Hosting
    • Best WordPress Hosting Providers
    • TOP 20 Web Hosting Companies
    • Best PHP 7 Web Hosting
    • Free WordPress Hosting Providers
    • Full List of EIG Web Hosting Brands
    • Bluehost Review
    • Bluehost Managed WordPress
    • Bluehost Coupon
    • HostGator Review
    • SiteGround Review
    • More..
  • Tutorials
    • Blogging
    • Make Money Online
    • SEO
  • Start a Blog
    • Start a WordPress Blog on HostGator
    • Start a WordPress Blog on Bluehost
Replace WordPress Published Date with Last Updated Date in Genesis

How to Add Last Updated Date To Post Meta Data In Genesis Child Themes?

WordPress Guides, SEO November 5, 20171 Comment

Many WordPress users don’t want the post published date to appear in the SERPs. The reason they don’t prefer to display the published date in Search Engines is because people usually prefer evergreen content. I wanted to remove dates from our website also as our website is a resources website like WordPress Codex. The problem with WordPress is that it by default displays post published dates in posts and in search engine results. After using a plugin to remove the post published date from posts and Search Engines for some time, I preferred to use the last updated date instead. In today’s article I will show you how to replace the published date with  the last updated date in WordPress themes and in Genesis child themes.

Why you shouldn’t remove dates from Search Engines and posts?

You may want to remove dates from search engines as I did before, but after reading some articles (including this one from WPBeginner) I decided that removing dates is not a good practice. The reason why removing dates is not a good practice is that when people visit your website and read an outdated entry and they don’t see dates, they would probably not visit your website again if it appeared in the SERPs as they will mark your website content as outdated and useless.

As you can see, we use the last updated date instead of the published date. In this way my website search results will have the last updated date instead of the published date. This method will also prevent Search engines from marking my website content as outdated content. By using the last updated date you will make sure that the date appears in SRPs is always the most recent date. For example, if you wrote a post a year ago and updated it today, it will appear in Google and SERPs as today.

last updated date Google SERPs
Post published 3 months ago, but updated 4 days ago!

How to display last updated date instead of published date In WordPress?

To display the last updated date in any WordPress theme, add the following code to your WordPress post meta data:

[code]Last updated on <time datetime="<?php the_modified_time(‘Y-m-d’); ?>">
<?php the_modified_time(‘F jS, Y’); ?></time>
[/code]

How the code works?

The code checks for the last time your post was updated and displays it instead of the published date. If you didn’t update your post after publishing it, the code will display the published date until you update your post.

The lat updated date will be displayed for both visitors and Search Engines, so Search Engines will display your post last updated date instead of published date in the SERPs.

How to display last updated date instead of published date In Genesis Framework & Genesis Child Themes?

Replace WordPress Published Date with Last Updated Date in Genesis
Last Updated Date in Genesis instead of Published Date.

At the time of writing this post, this website uses Genesis Framework with some changes. One of those changes is replacing the post published date with the last updated date. If you’re using Genesis Framework or a Genesis child theme follow this guide to replace your post’s published date with last updated date.

To display the last updated date in Genesis, Add this code to your theme functions.php file using any file editor like Notepad++:

That’s all what you need to do!

The code will remove the published date and displays the last updated date in your posts. This will also tricks the Search Engines to use the last updated date instead of published date in SERPs.

If you need any help, don’t hesitate to use comments below!

4.8 / 5 ( 17 votes )

Read more on WordPress Made Easy..

WordPress RSS, RDF, Atom Feed URLHow to Easily Find Your WordPress Blog Feed URL? (RSS & Atom) How to add an HTML Sitemap Page in WordPress using Hierarchical HTML Sitemap and WP Sitemap Page WordPress PluginsHow to Easily Add HTML Sitemap Page in WordPress How to Display Featured Image in Genesis Child ThemesHow to Display Featured Image in Genesis Child Themes Genesis ShortcodesGenesis Shortcodes: Full List of Genesis Shortcodes (2021) WP Meta SEO ReviewWP Meta SEO Review – How Powerful Is WP Meta SEO in 2021? Change Author Box Gravatar Image Size in GenesisHow To Easily Change Author Box Avatar Image Size in Genesis

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Comments

  1. Ahmed says

    May 21, 2018 at 4:31 PM

    Thanks, It worked just perfect

    Hats off to you buddy.

    Reply

Primary Sidebar

Need Help Getting Started with WordPress?

Start A Blog How to Start a WordPress Blog on Bluehost WordPress Guides WordPress Guides for Beginners WordPress Plugins WordPress Plugin Collections & Reviews WordPress Themes WordPress Theme Reviews & Collections WordPress Hosting Best WordPress Hosting Providers of the Month WordPress Tutorials Step by Step ً& WordPress Tutorials Make Money Online Generate Passive Income Online with WordPress Web Hosting WordPress Web Hosting Reviews & Coupons WordPress SEO WordPress Search Engine Optimization Tips Blogging Tips Blogging Tips & Tricks For Beginners WordPress Security Best Free WordPress Security Plugins Install WordPress How to Install WordPress on HostGator

Looking for Something?

Fresh Content

  • 10+ Best FREE WordPress Security Plugins of 2021
  • [FIXED] Unable to Create Directory wp-content/uploads. Is its Parent Directory Writable by the Server in WordPress
  • 10+ Best WordPress Contact Form Plugins of 2021
  • TOP 10 Indian Bloggers of 2021 + Their Earnings [RANKED]
  • 10+ Best Arabic WordPress Themes for Arabic RTL Sites 2021

Categories

  • Blogging
  • Make Money Online
  • SEO
  • WordPress Guides
  • WordPress Hosting
  • WordPress Plugins
  • WordPress Themes
  • WordPress Tutorials

WP-ME.com uses Bluehost Managed WordPress Hosting and recommends their WordPress Hosting for your website too.

You can easily start a WordPress blog on Bluehost for $7.99 $2.95 ONLY!

Thanks to their exclusive discount for our readers which includes a FREE domain name as well!

Get This Deal Now

Footer

About WP-ME.com

WordPress Made Easy is a free WordPress resource site that was founded in 2015.

WP-ME.com talks about all things WordPress and aims to help beginners learn WordPress with ease.

We offer free WordPress tutorials, WordPress theme & plugin reviews, making money online with WordPress, blogging tips & tricks, WordPress web hosting reviews, SEO hacks, and more.

Pages

  • WP-ME.com Blog
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Use
  • Cookies Policy
  • DMCA Notice

Useful Links

  • Best WordPress HostingUpdated!
  • AdvertisingAvailable!
  • Archives
  • Install WordPress on Bluehost
  • Install WordPress on HostGator
  • Guest Posting
  • XML Sitemap

WordPress Made Easy is ⚡ by WordPress
WP-ME.com runs on Bluehost Managed WordPress Hosting
Copyright © 2015 - 2021 WP-ME.com. All Rights Reserved.