TechTipsApp

Technology tips blog

  • Articles
    Categories
    • Tech news
    • Internet
    • Social Network
    • Google
    • Geeky Tips
    • Android
    • Windows 10
    Top Posts
    • Install Windows XP from USB
    • Install Windows 7 from USB
    • Open Facebook When It's Blocked
    • Partition Hard Drive Without Formatting
    • Reset Windows 7 Password
    • About
    • Contact
    • Privacy policy
    • Advertise
    • Terms of Conduct & Copyright Policy

Show Last Modified Date For The Posts Intelligently in Genesis

Tanmay WordPress Leave a Comment

There are plenty of opinions in the web regarding whether you should show the date for a post or not. Displaying the post date encourages the search engines to show the date in the search snippets. I’ve been reading too many suggestions from the experts where they advised not to show the publishing date in search result snippet to get a better click through rate. But it is bit confusing. The suggestion could be partially right for the sites having less number of ever green posts and for those who do not update their old articles.
If your site has a lot of articles which have been written over the years, it is quite natural that you need editing or updating them. Hiding the date from the search result will keep the freshness of the page even if you have edited and updated a significant part of the article. But, if you display the last modified date for the posts in your site, Google will update that in its search result and show the last modified date. Thus, you can make all your older posts renewed. Otherwise, the older posts will remain as vintage in SERP.
In this article you can learn how to display last modified date for the posts in Genesis child theme intelligently.

How to display Last Modified date for Updated post

By default, the WordPress themes, even the Genesis child themes show the published date for any post using the get_the_date() function which retains only the date on which the post was published. If you edit any published post in future, the above function cannot return the date of modification. That is why you need to upgrade the default code in your WordPress child theme. Here is how to do that.
Grab the code from this link: last-modified-genesis.txt and paste at your child theme’s function.php file.
Once done, your child theme will display the last modified date as ‘Updated on:’ for the posts which you re-edited or updated and the published date as ‘Published on:’ for the posts which you did not still edited or updated. You can view it live at this site.
Conclusion
I have read numbers of tutorials in the web suggesting not to show dates for the posts which are ever green. But believe me, that will not help you too much as Google is much smarter and they will push back the old articles in search results even you hide the date from it.
What is in your thought? Let’s know.

Post Tags: Genesis, Search result
Similar Articles from This Blog
Top 10 Meta Search Engines to Get More Search Result
Top 10 Meta Search Engines to Get More Search Result
How to Fix 404 Soft Errors in WordPress To Avoid Google Penalty
How to Fix 404 Soft Errors in WordPress To Avoid Google Penalty
Site Search: Add Google Custom Search with Separate Search Result Page
Site Search: Add Google Custom Search with Separate Search Result Page
Google Personalized Search: How To Turn It Off
Google Personalized Search: How To Turn It Off
How to Hide or Disable Google Instant Previews or Live Page Preview at Search Results
How to Hide or Disable Google Instant Previews or Live Page Preview at Search Results
Advanced Google Search Operators to Get Better Search Results
Advanced Google Search Operators to Get Better Search Results

Comments

  1. Arafin Shaon :

    I’ve added the code. Thanks a ton mate:) Just wanna know whether this code is fully compatible with HTML5 child themes or not 🙂

    Reply
    • Tanmay Ahmed :

      Sure! It is fully compatible with HTML 5. You can use this code in any Genesis child theme.

      Reply
  2. Jeff :

    Hi,
    I copied the text and pasted it into my Genesis Minimum Pro Theme in the function Php file and it doesn’t seem to be working. Not sure what to do.

    Reply
    • Tanmay Ahmed :

      Make sure that you’ve placed the code properly. It should work. We’ve checked it several time.

      Reply
      • Ryan :

        “placed the code properly” is there a specific spot in the Function PHP to put it? Is it replacing anything?
        Thanks! Excited to see this work!

        Reply
  3. Kamran :

    Thanks for the great article. I used it on one of my Genesis child themes and it worked well.
    However, my other site which uses eleven40 child theme doesn’t show updated date like the first site? What could be the reason for this?

    Reply
    • Tanmay Ahmed :

      This tutorial only works for Genesis child theme. Make sure that you have used the code properly.

      Reply
  4. D'Souza :

    Thanks for the useful info. Works like a charm..

    Reply
  5. Michael :

    My finding is that it will not work if you have the simple edits activated – you get it to work by using the [post_modified_date] in case of using simple edits!

    Reply

Leave a Comment Cancel reply

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

About Us

Tech Tips App is a technology blog, looking forward to broaden the mental horizons of technical geeks round the web. Striving hard to quench your technical thirst, we have put our best efforts on the line of exhaust to satisfy your versatile technical vocabulary.

Recently Published

  1. Partitioning Hard Drive in Windows 7 Without Formatting
  2. How to Find My Contacts on Google Map
  3. Introducing SMS Organizer by Microsoft is the Best SMS App
  4. How to Fix Windows Update When It Gets Stuck
  5. How to Get Rid of Windows 10 Automatic Repair Loop [Solved]
  6. Best Antivirus for Windows 10 (Is Windows Defender Good Enough?)
  7. Best Facebook Messenger Bots to Get more out of Messenger
  8. How to Fax a Document From Your Smartphone
  9. Top Social Media Platforms You Should Always Know About
  10. Bitcoin vs Altcoin: Where to Invest? – Guide For Dummies

© 2021 Tech Tips App All Rights Reserved  Post Sitemap