• Digital Marketing
    • SEO Services
      • Local SEO
      • E-commerce SEO
      • AEO Services
      • AI SEO
    • Paid Media Management
      • Google/Bing Ads
      • Social Ads
      • Amazon Strategic Account Management
      • Amazon Ad Management
    • Social Media
      • Social Media Optimization
      • Meta
      • Tiktok
      • LinkedIn
      • Twitter
    • Branding
      • Digital PR
      • Online Reputation Management
      • Email Marketing
      • Influencer Marketing
      • Infographics
    • Content Marketing
      • Content Strategy
      • Guest Posting
      • Whitepaper
  • ASO
  • GEO
  • Software Development
    • Development
      • Digital Experience Development
      • E-commerce Development
      • Mobile App Development
      • Web Infrastructure & Maintenance
      • Content Management (CMS) Systems
      • AI & GPT Integration
      • ADA Compliance Services
    • Software Solutions
      • Artificial Intelligence
      • AR / VR
      • Autodesk
      • Biometrics
      • Business Intelligence & Analytics
      • Cloud
      • CRM
      • Database
      • Document Management
      • ERP
      • Embedded Software
      • IT Service Management
      • Kiosk
    • Design
      • Website Design
      • Social Media Design
      • Ecommerce Website Design
      • Email Marketing Testing & Design
  • About Us
    • Portfolio
    • Blog
    • Franchise Marketing Services
  • Contact
  • FIFA
  • Request For Proposal
Digital Marketing
ASO
GEO
Software Development
About Us
Contact
  • FIFA
  • Request For Proposal

G Web Pro is a digital marketing and software development company that specializes in enhancing our clients’ online presence through tailored strategies and technical expertise.

Services
  • Digital Marketing
  • Software Development
Company
  • About
  • Portfolio
  • Privacy Policy
  • FAQ
Quick Links
  • Annual Scholarship 2019
  • Annual Scholarship 2018
  • Questionnaires

We are Reviewed on

  • Clutch
  • Google
  • Glassdoor

Connect with US

© 2026 G Web Pro Marketing Inc. | All Rights Reserved

How to Show the Last Modified Date of WordPress Post in SERP?

Home/Blog/How to Show the Last Modified Date of WordPress Post in SERP?

How-to-Show-the-Last-Modified-Date-of-WordPress-Post-in-SERP-1

It’s a fast-moving digital world. No matter what product or service you are selling, people always want the latest information on it. But it’s not always possible to create new stories on a particular topic.

Content posted two years ago doesn’t necessarily mean that it’s no longer relevant. It could, in fact, be more beneficial than similar content published since then. But, because of its published date or lack of modification, it may lose some important interaction.

Search engines are regularly updated and change their algorithms. They also tend to deliver the latest information to users. Even a minor update in your content may influence search engines to rank you on top unless there’s related content from a high-authority site with a huge number of backlinks.

Therefore, you should always keep your information updated so that it continues to reach an audience.

What if you have nothing to update on your existing high-ranking post?

Are you going to just watch your rankdrop? Absolutely not. Consider writing fresh new content on the same topic and promote it on different platforms. But, will this action guarantee that it will get the same position in the SERPs? Probably not. Moreover, it’s a time-consuming process to rewrite all the content on your site just to get it re-indexed and ranked.

Congratulations if you are going to have a WordPress development service. Along with the huge list of WordPress benefits, the widely renowned platform brings an easy solution to this. You can solve this issue just by writing a few codes in your editor. Search engines will automatically display the recently modified date of all your posts. The code is as follows:

function display_last_updated_date( $content ) {
$original_time = get_the_time(‘U’);
$modified_time = get_the_modified_time(‘U’);
if ($modified_time >= $original_time + 86400) {
$updated_time = get_the_modified_time(‘h:i a’);
$updated_day = get_the_modified_time(‘F jS, Y’);
$modified_content .= ‘<p class=”last-modified”>This post was last updated on ‘. $updated_day . ‘ at ‘. $updated_time .'</p>’;
}

$modified_content .= $content;
return $modified_content;
}
add_filter( ‘the_content’, ‘display_last_updated_date’ );

Just log into your

WordPress admin panel, click on the editor option in the left sidebar under “appearance”, find “function.php” and paste the code.

wordress-backendYou are now done showing your posts’ last modified date in the SERPs. You now have regained user trust and the preferential treatment of search engines preference through this simple modification of your content.

← PreviousNext →