{"id":93452,"date":"2026-03-16T09:30:57","date_gmt":"2026-03-16T14:30:57","guid":{"rendered":"https:\/\/www.bricktowntom.com\/blog\/?p=93452"},"modified":"2026-03-16T09:30:57","modified_gmt":"2026-03-16T14:30:57","slug":"displaying-the-last-updated-date-time-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.bricktowntom.com\/blog\/03\/displaying-the-last-updated-date-time-in-wordpress.html","title":{"rendered":"Displaying the last updated date &amp; time in WordPress\u00a0"},"content":{"rendered":"<p>If you have a <a href=\"https:\/\/www.godaddy.com\/pro\/hosting\/wordpress-hosting\" data-eid=\"procontent.garage.date-time-wordpress.product.link.click\" data-wpel-link=\"internal\" target=\"_self\" rel=\"follow noopener\">site with posts that are frequently updated<\/a>, then it behooves you to let your visitors know the articles they\u2019re reading are current. By default, WordPress just displays the date and time when the post was created.<\/p>\n<blockquote>\n<p>However, you can make a dozen updates to an article, it will still only show the original date and time.<\/p>\n<\/blockquote>\n<p>Some sites offer content\u00a0 their readers revisit, and from time to time and it makes them feel warm and fuzzy if they see your content is current. If you have updated a post recently, and only the original post date and time is displayed, you might lose visitors because they think a post is old and outdated.<\/p>\n<p>No one wants to lose visitors for something so silly, right?<\/p>\n<blockquote>\n<p>That sounds groovy. But how do I accomplish this?<\/p>\n<\/blockquote>\n<p>I\u2019m glad you asked. This task requires a little coding, but nothing too scary. As of writing this article, there are no plugins available to do this for you, so you\u2019ll have to roll up your sleeves and do a very small amount of coding.<\/p>\n<p>Don\u2019t worry though, I\u2019ll show you the ways of the force.<\/p>\n<h2>How to display the last updated date &amp; time in WordPress<\/h2>\n<p>First thing\u2019s first&#8230; before editing code, always back up your site first! Get into this habit now, less ye be in for it later. Also, be sure you\u2019re editing your <em>child theme<\/em>, not the <em>parent theme<\/em>.<\/p>\n<p>Now, with that out of the way, what you\u2019ll want to do is you\u2019ll want to connect to your site via File Manager or FTP. Either works fine.<\/p>\n<p>Next, you will want to navigate to the functions.php file. This is located in your theme. Navigate to <strong>public_html<\/strong> &gt; <strong>wp-content<\/strong> &gt; <strong>themes<\/strong> &gt; <strong>twentytwentytwo<\/strong> &gt; <strong>functions.php<\/strong>. Now open this file.<\/p>\n<p>*Note: I just happen to be using twentytwentytwo. Your theme will likely differ.<\/p>\n<p>Scroll down to the last line in the functions.php file and hit a hard return. Now enter this code on the new line:<\/p>\n<pre>\/\/ Last Updated Date and Time\r\n\r\nfunction last_date_updated( $content ) {\r\n\r\n$u_time = get_the_time('U');\u00a0\r\n\r\n$u_modified_time = get_the_modified_time('U');\u00a0\r\n\r\nif ($u_modified_time &gt;= $u_time + 86400) {\u00a0\r\n\r\n$updated_date = get_the_modified_time('F jS, Y');\r\n\r\n$updated_time = get_the_modified_time('h:i a');\u00a0\r\n\r\n$custom_content .= '&lt;p class=\"last-updated\"&gt;Recently updated on '. $updated_date . ' at '. $updated_time .'&lt;\/p&gt;'; \r\n\r\n} \r\n\r\n $custom_content .= $content;\r\n\r\n return $custom_content;\r\n\r\n}\r\n\r\nadd_filter( 'the_content', 'last_date_updated' );\r\n<\/pre>\n<p>Subsequently, you can also style your new code by going to <strong>Appearance<\/strong> &gt; <strong>Customize<\/strong>. Then select <strong>Additional CSS<\/strong>. Once you\u2019ve entered your custom style, be sure to select the <strong>Publish<\/strong> button, at the top.<\/p>\n<p>Enter in this style and modify it as you see fit:<\/p>\n<pre>.last-updated {\r\n\r\nfont-size: small;\r\n\r\ncolor: #ff0000;\r\n\r\ntext-transform: uppercase;\r\n\r\nbackground-color: #ffff00;\r\n\r\n}\r\n<\/pre>\n<p>Here is an example of what it could look like for you:<\/p>\n<\/p>\n<p>Now every time you update a post, it will be reflected on the front of the site. Again, modify the style declaration as you see fit, to better match your theme\u2019s style.<\/p>\n<h2>Closing thoughts<\/h2>\n<p>It is always a good idea to keep your content fresh, as it will keep\u00a0 visitors coming back, knowing they are getting the most recent content. There are, of course, many different ways you can edit the code above. This is but one example.<\/p>\n<p>Now go out there and have fun! See you next time.<\/p>\n<p>The post Displaying the last updated date &#038; time in WordPress\u00a0 appeared first on <a rel=\"follow noopener\" href=\"https:\/\/www.godaddy.com\/garage\" data-wpel-link=\"internal\" target=\"_self\">GoDaddy Blog<\/a>.<\/p>\n<p>Source: Go Daddy Garage<\/p>\n<p id=\"kc_opp\"><small>Republished by  <a href=\"http:\/\/www.blogtrafficexchange.com\/\">Blog Post Promoter<\/a><\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>If you have a site with posts that are frequently updated, then it behooves you to let your visitors know the articles they\u2019re &hellip;<\/p>\n","protected":false},"author":1,"featured_media":93453,"comment_status":"false","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[23511],"tags":[126],"class_list":["post-93452","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ebusiness-emarketing","tag-information"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/08\/first-email-newsletter-timer-300x168-1.jpg?fit=300%2C168&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p3k0YU-oji","jetpack-related-posts":[{"id":92060,"url":"https:\/\/www.bricktowntom.com\/blog\/04\/5-ways-for-pros-to-organize-a-wordpress-site.html","url_meta":{"origin":93452,"position":0},"title":"5 ways for pros to organize a WordPress Site","author":"admin","date":"April 8, 2026","format":false,"excerpt":"Do you have the annoying tendency to make sure whatever you do is organized is up to date? Are you a web developer, web designer, or maintain websites who has that issue? There\u2019s often so many things to keep track of when making and maintaining a WordPress site, from plugins\u2026","rel":"","context":"In &quot;E-business &amp; E-marketing&quot;","block_context":{"text":"E-business &amp; E-marketing","link":"https:\/\/www.bricktowntom.com\/blog\/category\/ebusiness-emarketing"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/01\/archive-g8ebc15b4e_12801-300x200-1.jpg?fit=300%2C200&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":93372,"url":"https:\/\/www.bricktowntom.com\/blog\/03\/how-to-test-php-updates-on-wordpress.html","url_meta":{"origin":93452,"position":1},"title":"How to test PHP updates on WordPress\u00a0","author":"admin","date":"March 29, 2026","format":false,"excerpt":"As you may know, WordPress is written with the PHP coding language, which requires updates to the latest version in order to remain secure and running its best. But before getting on the latest version, it\u2019s important to test PHP updates to ensure it works with the other components of\u2026","rel":"","context":"In &quot;E-business &amp; E-marketing&quot;","block_context":{"text":"E-business &amp; E-marketing","link":"https:\/\/www.bricktowntom.com\/blog\/category\/ebusiness-emarketing"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":93640,"url":"https:\/\/www.bricktowntom.com\/blog\/04\/wordpress-best-practices-for-a-successful-website.html","url_meta":{"origin":93452,"position":2},"title":"WordPress best practices for a successful website","author":"admin","date":"April 14, 2026","format":false,"excerpt":"WordPress is fun yet powerful. And there are so many things you can do with it. But don\u2019t just leap in with both feet and start WordPressing with reckless abandon. There are best practices one needs to partake in to ensure your WordPress site is dialed in and safe, to\u2026","rel":"","context":"In &quot;E-business &amp; E-marketing&quot;","block_context":{"text":"E-business &amp; E-marketing","link":"https:\/\/www.bricktowntom.com\/blog\/category\/ebusiness-emarketing"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":92819,"url":"https:\/\/www.bricktowntom.com\/blog\/03\/how-to-make-wordpress-sites-mobile-friendly.html","url_meta":{"origin":93452,"position":3},"title":"How to make WordPress sites mobile friendly","author":"admin","date":"March 21, 2026","format":false,"excerpt":"Mobile search makes up more than half of all searches on Google, and for many advertisers, most traffic comes from people on their mobile phones. That means, to make certain the WordPress sites you design are accessible to more people, you\u2019ll need to make sure those sites are mobile-friendly. In\u2026","rel":"","context":"In &quot;E-business &amp; E-marketing&quot;","block_context":{"text":"E-business &amp; E-marketing","link":"https:\/\/www.bricktowntom.com\/blog\/category\/ebusiness-emarketing"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/05\/smartphone-1894723_12801-300x200-1.jpg?fit=300%2C200&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":93159,"url":"https:\/\/www.bricktowntom.com\/blog\/04\/setting-up-google-analytics-automated-reports-for-a-wordpress-website.html","url_meta":{"origin":93452,"position":4},"title":"Setting up Google Analytics automated reports\u00a0for a WordPress website","author":"admin","date":"April 8, 2026","format":false,"excerpt":"Google Analytics can help understand what people do when they enter a WordPress website, how long they stay, and which part of the website converts the best. You only need to install a Google Analytics plugin on a WordPress website, and you will start receiving this information immediately. However, if\u2026","rel":"","context":"In &quot;E-business &amp; E-marketing&quot;","block_context":{"text":"E-business &amp; E-marketing","link":"https:\/\/www.bricktowntom.com\/blog\/category\/ebusiness-emarketing"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/06\/analytics-2618277_12801-300x200-1.jpg?fit=300%2C200&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":93634,"url":"https:\/\/www.bricktowntom.com\/blog\/03\/5-seo-tips-for-fintech-brands-to-follow.html","url_meta":{"origin":93452,"position":5},"title":"5 SEO Tips for Fintech Brands to Follow","author":"admin","date":"March 17, 2026","format":false,"excerpt":"Fintech can become fun tech for readers when you master the techniques that get your website seen by more people on search engine results pages (SERPs). Considering how layered a topic fintech can be and the many nuances involved when creating a fully-functional website, you need something that allows you\u2026","rel":"","context":"In &quot;Article Marketing&quot;","block_context":{"text":"Article Marketing","link":"https:\/\/www.bricktowntom.com\/blog\/category\/article-marketing"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/09\/5-SEO-Tips-for-Fintech-Brands-to-Follow.jpg?fit=1013%2C640&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/09\/5-SEO-Tips-for-Fintech-Brands-to-Follow.jpg?fit=1013%2C640&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/09\/5-SEO-Tips-for-Fintech-Brands-to-Follow.jpg?fit=1013%2C640&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.bricktowntom.com\/blog\/wp-content\/uploads\/2022\/09\/5-SEO-Tips-for-Fintech-Brands-to-Follow.jpg?fit=1013%2C640&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/posts\/93452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/comments?post=93452"}],"version-history":[{"count":4,"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/posts\/93452\/revisions"}],"predecessor-version":[{"id":102557,"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/posts\/93452\/revisions\/102557"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/media\/93453"}],"wp:attachment":[{"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/media?parent=93452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/categories?post=93452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bricktowntom.com\/blog\/wp-json\/wp\/v2\/tags?post=93452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}