By Ineke Huibregtse on Tuesday, 10 May 2016
Posted in Technical Issues
Likes 0
Views 334
Votes 0
Hello,
I'm trying to show the publication date of blog posts in the latest blogs module and also in the archive module. But they both show the creation date. How can I get them to display the publication dates of the blog posts? I cannot find the settings for that.
I've set the question to urgent as the site needs to go live.
Best,
Ineke
Hey Ineke,

Currently the modules are only displaying blog posts by creation date. If you want to change this, edit the module's template file and replace the codes below:


<?php echo $post->getCreationDate(true)->format($params->get('dateformat', JText::_('DATE_FORMAT_LC3'))); ?>


With,


<?php echo $post->getPublishDate()->format($params->get('dateformat', JText::_('DATE_FORMAT_LC3'))); ?>
·
Tuesday, 10 May 2016 01:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
Thank you so much for your quick reply. I'll try this fix early tomorrow and then I will be able to get the site online in time. Thanks!
Best
Ineke
·
Tuesday, 10 May 2016 02:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Tuesday, 10 May 2016 12:48
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post