Many of us have been writing and publishing blog posts for years. We all need to update our content from time to time. However, it is imperative to show your posts’ last updated/modified date on WordPress.
This customization makes it simple to understand users are reading updated content, not old, outdated content. You can display the last updated/modified date using third-party WordPress plugins or theme customization.
However, additional plugins may need additional resources from your server, or they will not display the date as you want or may distract the look of your theme.
Today, we will tell you how to show the last updated/modified date on the tagDiv Newspaper WordPress theme. It is the most loved theme among bloggers.
Show Last Updated/Modified Date in Newspaper Theme
(12, 11, X & v9.7.x)
Show Last Updated/Modified Date on Posts and Pages
Let’s tweak the tagDiv Composer to show the last updated time.
File: td_module_single_base.php
Location: wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php
1. Log in to your website’s WordPress dashboard.
2. On the left sidebar, click on Plugins > Plugin Editor.
3. Look for the drop-down —
4. Select the tagDiv Composer from the drop-down and Press the Select button.
5. Now, move to legacy > common > wp-booster > td_module_single_base.php
6. Search for the term td-post-date in the code and look for get_the_time near line numbers 332 and 362. You should take the backup of the code/file before making any changes.
7. Change both instances of get_the_time to get_the_modified_time.
8. To save changes, press the Update File button.
Show Last Updated/Modified Date on Home Page and Archive Pages
Let’s tweak the tagDiv Composer to show the last updated time.
File: td_module.php
Location: wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php
Steps:
1. In the same way, you need to edit the td-module.php
2. Search for td-post-date and look for get_the_time.
3. Now, change get_the_time to get_the_modified_time. Don’t forget to change both instances.
5. Finally, press the Update File button to save the changes.
Show Last Updated/Modified Date in Newspaper v9.6.1 or Older Theme
Show Last Updated/Modified Date on Posts and Pages
You must tweak the tagDiv Newspaper theme to get the modified date.
File: td_module_single_base.php
Location: wp-content/themes/Newspaper/includes/wp_booster/td_module_single_base.php
Steps:
1. Log in to your website’s WordPress dashboard.
2. On the left sidebar, click on Appearance > Editor.
3. Now the “Edit Themes” page is open.
4. Look for includes > wp_booster > td_module_single_base.php. Now click on td_module_single_base.php
5. In this PHP file, search for get_the_time. There are two instances.
6. Change get_the_time to get_the_modified_time. Make sure you’ve changed both instances.
7. To save changes, press the Update File button.
This change will show the last updated/modified date for all the posts.
Show Last Updated/Modified Date on Home Page and Archive Pages
You must tweak the tagDiv Newspaper theme to get the modified date.
File: td_module.php
Location: wp-content/themes/Newspaper/includes/wp_booster/td_module.php
Again, start from Step 3 of the last procedure.
4. Look for includes > wp_booster > td_module.php. Now click on td_module.php
5. Similarly, in this PHP file, search for get_the_time. Again, there are two instances.
6. Change get_the_time to get_the_modified_time. Make sure you’ve changed both instances.
7. To save changes, click on the Update File button.
You’re done.
Top Benefits of Showing Last Updated/Modified Date
1. Blog readers can see the last updated/modified date. It will not be less than value addition.
2. Google Search will show your updated articles’ last updated/modified date.
This article was written on 23-09-2017 and updated on 06-03-2018.
3. As users like to read new or updated content. It will improve your blog post’s CTR and help you get better conversions.
We believe the article is helpful. As a tagDiv Newspaper WordPress theme user, you can show the last updated/modified date on the article, homepage modules, and archive pages.
Thanks for the tip! I’m using Newspaper’s Child theme (in order to keep codes and snippets I added to the PHP files when there’s a new theme update). How do you implement the changes for the Child theme? I copied and edited both td_module.php and td_module_single_base.php to the Child theme folder, but the theme still shows the “old” publication date (and not the updated date). Thanks in advance for your help!
Thanks for your comment. I will need to check your child theme. Can you please send me the entire folder you have uploaded to the server? My email is: techprevue[at]yahoo[dot]com
Thank You So Much Sir…
Thanks, bro!
Thanks Vinay! If I wanted to add the words “Last Updated” right before the modified time, where should they go in the code? Thanks in advance for your help!
I don’t recommend to add “Last Updated” because it will also appear for new posts.
Thanks for this Vinay. However, i wanna let you know it never worked for me.
I did exactly as you explained. I suspect it might be the new update on Newspaper theme.
It is working on this blog. You can check. We have intimated the TagDiv team about this. Maybe they will look and provide it by default.
Hi, thanks for your help… Can we do it at AMP? Thanks for your answer in advance.
Thanks vinay
I have been trying to do this on my post but thanks to you I found the solution
so what happens when you update the theme?
You need to make changes every time before updating to the most recent version.
Very complicated issue… i don’t know why tagdiv refuse to build this like other magazine themes out there
I use Newspaper 9.5 and in the php files you mentioned, get_the_time appears three times. I have no idea if I have change “get_the_time” to “get_the_modified_time” on the third instance as well.
includes/wp_booster/td_module_single_base.php: third instance is on line 575
9.6 update has the option to show the modified date.
It does not
Check the latest trick.
Thanks for the very valuable tips for us. It’s really helpful post keep it up…
How does one add the word “updated” in front of the date? It only shows the modified date but does not inform the reader that it was updated on that new date.
I will update you about this. I need to update this article because a new version of this theme is coming soon.
Thanks for the very valuable tips for every one. It’s really helpful keep it up…
Thanks for sharing..
Bro, it’s not working on Newspaper 10. Please help bro!
We are trying our best to give you a fresh solution. It is updated now!
Thanks for sharing great info… Thanks, bro!
Not working bro on Newspaper X, please fix this.
I update the tutorial to make changes in NEWSPAPER X.
Hello Brother, I am using Newspaper 8 and I try to update from the theme editor, it says to use FTP to update the theme file. but I am unable to find ‘wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php’
We have updated the directory location. Thanks!
In cPanel (File Manager). Please Help.
Please check we have covered both methods. For old and new versions.
Hi,
Thanks a lot, guys, this actually helped us to avoid those bulky cloud templates.
Cheers,
Nice write-up. The team of Newspaper theme has refused to add this method for their mobile plugin theme.
Do you know how to add this to the mobile theme? Since Google considers mobile when indexing pages these days and having this on desktop rather than mobile is kinda useless for someone who uses the mobile theme.
Do these changes, and they will reflect on the mobile theme as well.
Hi, Thank you for this.
Newspaper theme 11 is what I am using.
Do you have the instructions for this version?
It is the same for version 11.
Hi,
1) The topic is just the output of the date. I want to add the publication time. I tried to put it according to the instructions, but it is not displayed. The page is assembled using the Tag DIV composer.
2) You can add a date to the post in the settings, but I didn’t find the time anywhere.
3) I tried to write somewhere in the single theme files, but there are no changes anywhere. Please help
You may take the help of tagdiv team.
Thanks for this
But instead of last modified date, is it possible to get current for all post? Like even post made 2023 should show today’s date inside the contents.
I have tried this with other magazine theme and it works, but seems Newspaper and NewsMag are a little bit complicated.
Do you know it will hurt your SEO in long term?