How to Display the Last Updated Date in newspaper WordPress theme


How to Display the Last Updated Date in newspaper WordPress theme

Recently we publish a Tutorial for How to Show Last Updated Date in Schema WordPress theme.this tutorial we are going to Learn about How to Display the Last Updated Date in newspaper WordPress theme.Already I explain its advantages in My previous blog post.

Display the Last Updated Date in newspaper WordPress theme

  • Open your web hosting Cpanel ( don’t edit the theme from WordPress admin panel)
  • Open File manager
  • Cloud user login your FTP/SFTP account
  • Go to wp-content/themes/newspaper
  • Open newspaper folder now you find the loop-single.Php 
  • Just open the File and Use CTRL +F to find the Below PHP snippet
<?php echo $td_mod_single->get_date(false);?>
  • Replace the line with the Below Last Updated Function Code
<span class="td-post-date"> Last Updated: <span class="entry-date updated td-module-date"><?php the_modified_date('F j, Y'); ?></span></span>
  • Cloud users Edit the File From Code editor don’t use notepad for code edit’s
  • After that save your Edits
  • Successfully we add the Last Updated date Feature in newspaper WordPress theme.

Display the Last Updated Date in newspaper WordPress theme

Update post

Want to show Both publish date and updated date Just copy and paste this Below PHP snippets on the loop-single.Php File

<?php echo $td_mod_single->get_date(false);?> <span class="td-post-date"> and Last Updated: <span class="entry-date updated td-module-date"><?php the_modified_date('F j, Y'); ?></span></span>

 

Check the Below image

Display the Last Updated Date in newspaper WordPress theme

From the Editor’s Desk

we personally tested this code in Newspaper theme we attach the blog link which uses the newspaper WordPress theme.(Note – If you get the New theme update means Just back the loop-single.php file because new theme update overwrites the current theme customization)

 


Was this article helpful?
Thanks!

Your feedback helps us improve Allwebtuts.com



33 Shares
+11
Tweet
Share30
Pin1
Stumble1