HomeBusinessWordPressHow to Display Last Updated Date in Newspaper WordPress Theme

How to Display Last Updated Date in Newspaper WordPress Theme

There are lots of tutorials available on how to display the last updated/modified date in WordPress. These are basically general tutorials which you can apply to several themes. However, there are some themes in which it’s hard to find where to make modifications to show the last updated date. We also encountered the same problem in Newspaper WordPress theme but luckily after messing around with the code, finally we’ve found a solution. So here’s what to do:

Also read: Find Competitors Organic Keywords for Free

Steps to Display Last Updated Date in Newspaper WordPress Theme

Before Adding Last Modified Date
Before Adding Last Modified Date

Recently Tagdiv had to change the whole structure of the theme to comply with the new standards for WordPress Themes enforce by Envato. In doing so they have to keep just the basic functionality of the theme in the code and allow other heavy files to load from plugins if activated by the users.

Hence the file structure changed for the newer version of Newspaper Theme. We have two files that we need to edit to show the last updated date on the homepage as well as post. And further down this post, we will refer them as File 1 & File 2.

Select the Appropriate Version & Proceed:

For Newspaper Theme 9.7 or Newer

File 1: wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php
File 2: wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php

For Newspaper Theme 9.6.1 or Older

File 1: wp-content/themes/Newspaper/includes/wp_booster/td_module_single_base.php
File 2: wp-content/themes/Newspaper/includes/wp_booster/td_module.php

  1. Open File 1 and find the code that looks like this.

    $td_article_date_unix = get_the_time(‘U’, $this->post->ID);


    $buffy .= ” . get_the_time(get_option(‘date_format’), $this->post->ID) . ”;
  2. Change the highlighted get_the_time function to get_the_modified_time.
  3. Pretty Easy, HUH! You’ve successfully changed the post date to last updated date in all the posts.
  4. Now repeat the step for File 2 and you’ll be able to see the last updated date on the Homepage too.
After Adding Last Modified Date
After Adding Last Modified Date

What We Just Did?

  • File 2 contains the general functions & code of the Newspaper theme. It is generally used by the homepage.
  • File 1 is almost the same as File 2 however it contains general functions & code for post page.
  • We basically changed the get_the_time() function to get_the_modified_time(). You can read more about these functions on WordPress Documentation.

What are the Benefits of Showing Last Updated Date?

  • As we know that Google shows the date of the articles in the search result.
  • Suppose you have written an article about two years ago.
  • But when you update your article, still it will show the same timestamp in the search result and also on the post.
  • The visitor will think that it may be an outdated article and will most probably find other blogs or website.
  • Hence this may increase your CTR and reduce your Bounce Rate.
  • You can check out the image below. Although the article was posted on 16 February 2015. After updating the article, the date changed to 21 August 2016.
Google Search Results Shows Last Updated Date
Google Search Results Shows Last Updated Date

We hope that this article helped you in customizing your theme to show the last modified date on Newspaper theme. If you have any doubts or problems you can throw it in the comment section below.

“As an Amazon Associate & Affiliate Partners of several other brands we earn from qualifying purchases.” [Read More Here]


  1. Hello,

    I don’t know how to do that because pages are not supposed to have these options. Will let you know if we find any method to get it done.

    BTW why do you want to add the date on Pages? Why simply not use the post option?

Leave a Comment

Please enter your comment!
Please enter your name here

By submitting the above comment form, you agree to our Privacy Policy and agree with the storage and handling of your data by this website.

Stay Connected

Subscribe to our Newsletter

Stay updated with all the latest news, offers and special announcements.

By signing up, you agree to our Privacy Policy and agree with the storage and handling of your data by this website.

Latest Posts

What is Duplex Printing & Why Should You Use It?

Ever stared at a bunch of single-sided printed pages and thought to yourself, "There should be a better way to do this"? Well, there...

Effective Strategies to Secure Your Cloud Infrastructure and Safeguard Your Business

Cloud computing is an essential element in modern businesses due to its scalability, flexibility, and cost-effectiveness. With the widespread adoption of digital transformation, security...

10 Best WhatsApp Privacy Settings to Protect Yourself (2023)

WhatsApp has recently introduced many features to safeguard its users from SPAM and Illicit activities. Some of these features are turned on by default,...

Can You See Who Screenshotted Your WhatsApp Status?

From hiding your profile picture to limiting your audience for status, WhatsApp has introduced many features to increase the privacy level of the app. Like...

How to Automatically Spin Down or Sleep HDD on Debian

It is probably not a great idea to let your HDD spin forever on a server that is always on. Whether you are using...

All Time Favorites

11 Best WiFi Hacking Apps for Android (2023)

Today, almost anywhere we go, we are surrounded by tons of WiFi Networks, whether at our homes, hotels, workplaces, or even public places like...

17 Best Illegal Android Apps Not on Play Store (2023)

Google Play Store has the most extensive collection of apps for Android. Almost everyone downloads apps from the Play Store. However, certain genuinely excellent...

15 Best Game Hacking Apps for Android (2023)

Are you a mobile gamer? If you are, then you've come to the right place. This post will tell you about the Best Game...

How to Download Torrent Files with IDM (Torrent to IDM)

Hey guys, you may all have heard about different ways to download torrent files. And some of you may also have downloaded them using...

11 Best Download Managers for Windows

The Internet is a vast resource of a lot of things which includes music, videos, movies and a lot of other things. The ability...