Show the update date of entries instead of the publication date

By default, most WordPress themes show the date of publication of an entry, even if it has been subsequently modified to update information contained in it, which makes not adequately show the validity of its content .

This, in addition, supposes a possible loss of traffic and, consequently, is a loss of possibility of improvement of natural positioning, because Google will always offer the most current contents possible for each type of result . Also, the user will always choose a more recent result than an older one .

 date publication in google snippet

So Why is it not a bad idea for your theme to show the update date instead of the publication date? Especially if you get more visits, not only from direct visitors but also from search engines. Let's go to it.

Show the update date of the entries with code

If you're not afraid to modify some code it's a simple modification that you have to do in your theme . The only thing is that you will not always find the above mentioned code in the same place of the subject.

The ideal situation is in which the line that shows the date is included in the file functions.php but not it's always like that, so you still have to look for it in files that show dates, like index.php single.php or even archive.php and other file templates (categories, tags, author, etc.)

No matter what file you are in, what you have to look for is the WordPress function get_the_time . In the theme that I currently use it would be here:

 get_the_time "width =" 821 "height =" 47 "srcset =" /get_the_time.png 821w, 550w "sizes =" (max-width: 821px) 100vw, 821px "/> </a> </p>
<p> And replace it, starting from the same example, by the function <a href= get_the_modified_date :

 get_the_modified_date "width =" 821 "height =" 60 "srcset =" https: // 821w, 550w "sizes =" (max- width: 821px) 100vw, 821px "/> </a> </p>
<p> In short, you change <code> get_the_time </code> to <code> get_the_modified_date </code>simple and effective. Save the changes and you will pass this: </p>
<p> <a href=  entry wordpress actual date publication

To this other:

 entry wordpress date updated ]

Also, do not fear, that the change will not affect the order of your entries on the cover, as they will be displayed in order of publication, not update.

Show update date entries through a plugin

The other possibility is that you forget about codes and use a plugin, and there is a perfect one: WP Last Modified .

The only downside is that does not replace the date of publication for the update but adds which may confuse your readers, and even the search engine, but for options that are not.

However offers some interesting features:

  • Allows to display the date of the last modification in entries and pages.
  • You can choose to show the update date at the top or bottom of entries and pages, as well as different date and time formats to display it.
  • Allows you to customize the text that will be displayed next to the date. For example " Modified on: " or " Updated: "

 wp last modified settings

What you get is this:

 date of publication and update

Choose the option you prefer, showing the update date will reduce the bounce rate ] of your entries, since both the visitor and the search engine user always look for the most recent information possible .

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you: