Homepage › Forum › Product Support › Jhana › Show update date on Blogposts
- This topic has 6 replies, 2 voices, and was last updated 1 year, 6 months ago by
Jackie.
-
AuthorPosts
-
1 year, 6 months ago #31107
Hi there
Currently, my blogposts show the publication date - both on the blogpost itself and on the /blog site.
Is there any option to show the date of the last update? If yes, how?Thanks in advance for your help.
Katharina1 year, 6 months ago #31109and a second screenshot
1 year, 6 months ago #31118Hi.
Thank you for contacting us.
To get the modified date of the post, please change the source code in this file:
/wp-content/themes/yolo-jhana/templates/archive/content.php line 71 and
change the function: get_the_date() to the get_the_modified_date()
and for the blog post details, please change the source code in this file:
wp-content/themes/yolo-jhana/framework/core/functions/breadcrumb.php line 314
change the function: get_the_date('c') to get_the_modified_date('c')
Please recheck it.
Regards.
1 year, 6 months ago #31121Hi Jackie
Thanks for your reply.
I have 2 more questions:
- Does this replace the date of publication? So instead of showing the date when the article was published, it'll show the date of its last modification? Because I'd like to have both dates, please find an example in the screenshot attached.
- Is there any other (=easier) way to do this? I'm not too comfortable with replacing codes. I'm afraid it might break stuff, especially after the next update.
Looking forward to your reply.
Thanks again
Katharina1 year, 6 months ago #31126Hi.
The code is use to replace the publish date with the updated date. Please give us your site info again if you want to display both. We will help you add the code to the child theme.
That will help you avoid the loss when updating the theme.
Regards
1 year, 6 months ago #31134Hi Jacky
Thanks for your reply.
You write that the code replaces the publish date with the updated date. And in the next sentence you say: please give us your site info if you want to display BOTH.
So, if you help me set up this code, is it to display BOTH or just replace the publish date with the updated date? And if it's for displaying both - does it just show 2 dates? Or any words, like "published: dd/mm/yyyy", "last update: dd/mm/yyyy"?
Thanks for your reply.
Katharina1 year, 6 months ago #31136Hi.
I need to edit the source code to help you display the published date and last date.
If you want, you can add the text and date as format: "published: dd/mm/yyyy", "last update: dd/mm/yyyy.
Regards.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.
