Change post date by last updated

Posted in: Newspaper
Post count: 76

Hi,

I find way for change date by “last updated” on post :

I replace : <?php echo $td_mod_single->get_date(false);?>

with :

<p>Dernières mises à jours : <?php the_modified_date(); ?></p>

But i just find:

<?php echo $td_mod_single->get_date(false);?>

in

single_template_2.php

I can’t find this code in other template, then i want to know where i can find it and if have better way for change date by last updated, i try :

<?php echo $td_mod_single->get_update(false);?>

But it don’t work.

Thank’s

Post count: 7909

Hi,

Please check this topic – https://forum.tagdiv.com/topic/how-to-make-this/

Thanks!

Post count: 76

Thank’s Alin,

If they write “how to change post date by last update”
I’ll find 😉

But “how to make this”…

Post count: 80

In loop-single-2 there is no get_date, how are we going to change it there?

Post count: 76

Hi Pedro,

You can find it in :

single_template_2.php

Post count: 22421

Yes, there are 2 files that correspond to each post style. If the code is not in a loo-single file, you should check the single-template files.
Thank you!

Post count: 80

Thanks, I got it with the help of my programmer. Now, how do I make the last modified articles appear on the homepage, in spite of the last articles created?

http://prntscr.com/dmqnlo

Post count: 22421

Hello,

The articles on the homepage will not appear based on their last modified date but rather the last published bost. There ism no such sorting option added in our theme. For this you will have to ask your programmer to create a new sorting option. Here is an example of how a new sorting can be added: https://forum.tagdiv.com/topic/implemented-new-sort-most-popular-among-posts-of-last-7-days/

Thank you!

Post count: 76

Hello

Perhaps you can add this on test list, i’m interested by that too.

Thanks

Viewing 9 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic.