how to show date update article?

Posted in: Newspaper
Post count: 8

Hello, in my site I have many articles, and it happens to update them, is it possible to show the update date instead of the publication date? Or better, can you show them both?

Post count: 20688

Hi,

By a theme option that is not possible, only the published date will be displayed. There is a topic containing a code modification that has to be made in the post templates, in order to replace the default format with the last updated
https://forum.tagdiv.com/topic/post-last-updated/
Sorry for the inconvenience.

Thanks

Post count: 8

Thanks, for support

Post count: 8

I was been able to modify the date of the last update of the posts, thanks the following code, that I copied and modified in the child theme: includes > wp_booster> td_module_single_base.php. Now I’ve found another problem: infact inside the posts the update date is correct, but in the preview post module, it isn’ t change at all. Can somebody help me?

Post count: 20688

Hi,

That modification is for the single post page, modules will not be affected. If you want the same for modules, you will have to edit the modules you use
https://www.screencast.com/t/HrJzMjSKEiVp

Either in the main theme or do it in a child theme. Something like this should work for example, give it a try

<?php echo get_the_modified_date('F j, Y g:i a', $this->post->ID); ?>

Thanks

Post count: 8

thanks a lot!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.