{"id":39657,"date":"2013-12-18T15:36:04","date_gmt":"2013-12-18T10:06:04","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/?p=39657"},"modified":"2026-10-08T19:27:21","modified_gmt":"2026-10-08T13:57:21","slug":"add-updated-date-wordpress","status":"publish","type":"post","link":"https:\/\/www.quickonlinetips.com\/archives\/2013\/12\/add-updated-date-wordpress\/","title":{"rendered":"How to Show the Updated Date in WordPress Themes (Including Official Themes)"},"content":{"rendered":"<p>When you refresh an old article, readers and search engines should know it&#8217;s up to date. Showing the updated date on your WordPress posts tells visitors the information is current, and the matching structured data tells Google when the page last changed. Many themes, including WordPress&#8217;s official default themes, only show the original published date. Here&#8217;s how to show the updated date in WordPress in 2026, with a theme setting, an SEO plugin or a few lines of code, plus what we did in the Twenty Fourteen theme.<\/p>\n<p><strong>Quick answer:<\/strong> Check your theme&#8217;s settings first (Kadence, Astra and GeneratePress have a &#8220;last updated&#8221; option). Otherwise, use <code>get_the_modified_date()<\/code> in your child theme to print &#8220;Updated on [date]&#8221; near the post title. For Google, make sure your Article structured data includes <code>dateModified<\/code>; SEO plugins like Rank Math and Yoast add it automatically.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_90 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6b0627736c261\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #1a202c;color:#1a202c\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #1a202c;color:#1a202c\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6b0627736c261\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/12\/add-updated-date-wordpress\/#Why_the_updated_date_matters\" >Why the updated date matters<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/12\/add-updated-date-wordpress\/#The_structured_data_errors_that_started_this\" >The structured data errors that started this<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/12\/add-updated-date-wordpress\/#Method_1_Use_your_theme_or_SEO_plugin\" >Method 1: Use your theme or SEO plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/12\/add-updated-date-wordpress\/#Method_2_Add_the_updated_date_with_code_any_theme\" >Method 2: Add the updated date with code (any theme)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/12\/add-updated-date-wordpress\/#Method_3_Twenty_Fourteen_and_other_official_themes\" >Method 3: Twenty Fourteen (and other official themes)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/12\/add-updated-date-wordpress\/#Frequently_asked_questions\" >Frequently asked questions<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/12\/add-updated-date-wordpress\/#Should_I_show_the_published_date_the_updated_date_or_both\" >Should I show the published date, the updated date, or both?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/12\/add-updated-date-wordpress\/#Does_showing_the_updated_date_improve_rankings\" >Does showing the updated date improve rankings?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/12\/add-updated-date-wordpress\/#Will_this_change_my_post_URLs\" >Will this change my post URLs?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Why_the_updated_date_matters\"><\/span>Why the updated date matters<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><strong>Readers trust fresh content.<\/strong> A 2014 date on a tutorial makes people assume it&#8217;s out of date, even if you rewrote it last week.<\/li>\n<li><strong>Google uses date signals.<\/strong> Google recommends showing a clear visible date and providing <code>datePublished<\/code> and <code>dateModified<\/code> in structured data. Its <a href=\"https:\/\/developers.google.com\/search\/docs\/appearance\/publication-dates\" target=\"_blank\" rel=\"noopener\">guidance on publication dates<\/a> explains how it picks the date shown in search results.<\/li>\n<li><strong>Be honest.<\/strong> Only change the updated date when you make meaningful changes. Google warns against faking freshness.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"The_structured_data_errors_that_started_this\"><\/span>The structured data errors that started this<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>When Google Webmaster Tools (now Search Console) launched its structured data report, it showed thousands of errors on every post and page on our site:<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-39658\" style=\"border: 1px solid black;\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/structured-data-error.png\" alt=\"Structured data errors for missing updated date\" width=\"487\" height=\"209\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/structured-data-error.png 487w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/structured-data-error-150x64.png 150w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/structured-data-error-300x128.png 300w\" sizes=\"(max-width: 487px) 100vw, 487px\" \/><\/p>\n<p>They were caused by a missing <code>updated<\/code> class in the theme&#8217;s hAtom (hentry) microformat markup, where <em>entry-title<\/em> and <em>updated<\/em> were the two required fields:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-39659\" style=\"border: 1px solid black;\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/missing-updated-errors.png\" alt=\"Missing updated date hentry errors\" width=\"440\" height=\"157\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/missing-updated-errors.png 440w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/missing-updated-errors-150x53.png 150w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/missing-updated-errors-300x107.png 300w\" sizes=\"(max-width: 440px) 100vw, 440px\" \/><\/p>\n<p>Search Console no longer reports hAtom errors, and Google relies on JSON-LD structured data instead, but the lesson stands: give each post a clear, machine-readable updated date.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Method_1_Use_your_theme_or_SEO_plugin\"><\/span>Method 1: Use your theme or SEO plugin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><strong>Theme settings:<\/strong> in Kadence, go to <strong>Customizer &gt; Posts\/Pages Layout &gt; Single Post Layout &gt; Post Meta<\/strong> and turn on the last updated date. Astra and GeneratePress have similar options.<\/li>\n<li><strong>SEO plugins:<\/strong> Rank Math and Yoast add <code>dateModified<\/code> to the Article schema automatically, and can show the updated date in search snippets settings.<\/li>\n<\/ul>\n<p>Check the result with Google&#8217;s <a href=\"https:\/\/search.google.com\/test\/rich-results\" target=\"_blank\" rel=\"noopener\">Rich Results Test<\/a> or the <a href=\"https:\/\/validator.schema.org\/\" target=\"_blank\" rel=\"noopener\">Schema Markup Validator<\/a>, which replaced the old Structured Data Testing Tool.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Method_2_Add_the_updated_date_with_code_any_theme\"><\/span>Method 2: Add the updated date with code (any theme)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Add this to your child theme&#8217;s <code>functions.php<\/code> to show &#8220;Updated on&#8221; above post content whenever a post has been modified after publishing:<\/p>\n<pre><code>add_filter( 'the_content', function ( $content ) {\r\n    if ( is_single() &amp;&amp; in_the_loop() &amp;&amp; is_main_query()\r\n         &amp;&amp; get_the_modified_time( 'U' ) &gt; get_the_time( 'U' ) + DAY_IN_SECONDS ) {\r\n        $updated = sprintf(\r\n            '&lt;p class=\"updated-date\"&gt;Updated on &lt;time class=\"updated\" datetime=\"%1$s\"&gt;%2$s&lt;\/time&gt;&lt;\/p&gt;',\r\n            esc_attr( get_the_modified_date( 'c' ) ),\r\n            esc_html( get_the_modified_date() )\r\n        );\r\n        $content = $updated . $content;\r\n    }\r\n    return $content;\r\n} );<\/code><\/pre>\n<p>It shows the date only if the post was updated at least a day after publishing, so minor same-day fixes don&#8217;t trigger it. We covered more ways to <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/07\/add-updated-date-markup\/\">add last modified date markup to WordPress<\/a> in an earlier post.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Method_3_Twenty_Fourteen_and_other_official_themes\"><\/span>Method 3: Twenty Fourteen (and other official themes)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/11\/default-twenty-fourteen-wordpress-theme\/\">Twenty Fourteen<\/a>, the date comes from the <code>twentyfourteen_posted_on()<\/code> function in <code>inc\/template-tags.php<\/code>. It&#8217;s wrapped in <code>if ( ! function_exists() )<\/code>, so you can override it by defining a function with the same name in your child theme&#8217;s <code>functions.php<\/code>. We copied it and made three changes:<\/p>\n<ol>\n<li>Replaced <code>get_the_date()<\/code> with <code>get_the_modified_date()<\/code>, so the updated date is shown.<\/li>\n<li>Added the <code>updated<\/code> class to the date, which fixed the structured data errors.<\/li>\n<li>Added the word <strong>Updated<\/strong> before the date, so readers know it isn&#8217;t the original publish date. You don&#8217;t want people finding five-year-old comments on a post that looks a month old.<\/li>\n<\/ol>\n<p>The key line in our version looked like this:<\/p>\n<pre><code>printf( 'Updated &lt;span class=\"entry-date updated\"&gt;&lt;a href=\"%1$s\" rel=\"bookmark\"&gt;&lt;time class=\"entry-date updated\" datetime=\"%2$s\"&gt;%3$s&lt;\/time&gt;&lt;\/a&gt;&lt;\/span&gt; ...',\r\n    esc_url( get_permalink() ),\r\n    esc_attr( get_the_modified_date( 'c' ) ),\r\n    esc_html( get_the_modified_date() ),\r\n    ... );<\/code><\/pre>\n<p>The same approach works in other official themes such as Twenty Fifteen through Twenty Seventeen, which use similar <code>_posted_on<\/code> functions. In block themes like Twenty Twenty-Five, edit the Single Posts template in the Site Editor and set the <strong>Date<\/strong> block to show the modified date. (Using Twenty Fourteen? You may also want to <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2014\/04\/remove-google-fonts-lato-twenty-fourteen-wordpress-theme\/\">remove its Lato font<\/a> for speed.)<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Frequently_asked_questions\"><\/span>Frequently asked questions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Should_I_show_the_published_date_the_updated_date_or_both\"><\/span>Should I show the published date, the updated date, or both?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Both is clearest: &#8220;Published 2014, updated October 2026&#8221;. If you show only one, show the updated date, clearly labelled.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Does_showing_the_updated_date_improve_rankings\"><\/span>Does showing the updated date improve rankings?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Not by itself. Genuinely improving the content is what helps; the date simply tells readers and Google that it&#8217;s current.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Will_this_change_my_post_URLs\"><\/span>Will this change my post URLs?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>No. Showing the modified date doesn&#8217;t change the publish date or permalinks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you refresh an old article, readers and search engines should know it&#8217;s up to date. Showing the updated date&#8230;<\/p>\n","protected":false},"author":4,"featured_media":39658,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"default","_kad_post_title":"default","_kad_post_layout":"default","_kad_post_sidebar_id":"","_kad_post_content_style":"default","_kad_post_vertical_padding":"default","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[6,41],"tags":[49,17],"class_list":["post-39657","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogging","category-search-engine-optimization","tag-tutorials","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/39657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=39657"}],"version-history":[{"count":1,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/39657\/revisions"}],"predecessor-version":[{"id":63688,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/39657\/revisions\/63688"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media\/39658"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=39657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/categories?post=39657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/tags?post=39657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}