How to Show Last Updated/Modified Date on the Newspaper 12 Theme?

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.

Edit the tagDiv Composer

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

Find td-post-date in 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.

Find td-post-date in td module-single-base.php and change get_the_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.

Find td-post-date in td-module.php

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.

Edit Newspaper WordPress Theme wp_booster > td_module_single_base.php

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.

Edit Newspaper WordPress Theme wp_booster > td_module_single_base.php

6. Change get_the_time to get_the_modified_time. Make sure you’ve changed both instances.

Edited td_module_single_base.php

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.

Edit NewsPaper WordPress Theme wp_booster > td_module.php

6. Change get_the_time to get_the_modified_time. Make sure you’ve changed both instances.

Edited td_module.php

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.

SERP- Last modified date WordPress theme

This article was written on 23-09-2017 and updated on 06-03-2018.

Original date of blog post

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.

39 thoughts on “How to Show Last Updated/Modified Date on the Newspaper 12 Theme?”

  1. 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!

    1. Vinay Prajapati
      Vinay Prajapati

      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

  2. 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!

    1. Vinay Prajapati
      Vinay Prajapati

      I don’t recommend to add “Last Updated” because it will also appear for new posts.

  3. Avatar photo
    Andrew James

    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.

    1. Vinay Prajapati
      Vinay Prajapati

      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.

  4. Avatar photo
    Muideen Samuel

    Thanks vinay
    I have been trying to do this on my post but thanks to you I found the solution

      1. Avatar photo
        Kingsley Felix

        Very complicated issue… i don’t know why tagdiv refuse to build this like other magazine themes out there

  5. 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

  6. 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.

    1. Vinay Prajapati
      Vinay Prajapati

      I will update you about this. I need to update this article because a new version of this theme is coming soon.

  7. Avatar photo
    Startup Authority

    Thanks for the very valuable tips for every one. It’s really helpful keep it up…
    Thanks for sharing..

  8. 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’

  9. Avatar photo
    Shekhar Vaidya

    Hi,

    Thanks a lot, guys, this actually helped us to avoid those bulky cloud templates.

    Cheers,

  10. 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.

  11. Avatar photo
    Eric Kimani

    Hi, Thank you for this.

    Newspaper theme 11 is what I am using.

    Do you have the instructions for this version?

  12. 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

  13. 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.

Leave a Comment

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

Scroll to Top