By Anthony Pollock on Friday, 18 January 2019
Posted in General Issues
Likes 0
Views 517
Votes 0
On our home page, we are using the Latest Blogs Module to display the 6 latest blogs with the tag "Home Page Stories." The blogs display fine, but the date being displayed is the creation date and not the published date. If you click a blog it is displayed with the published date as it should. I have gone through the EasyBlog settings and the module's settings, and found many places where you can set the date posted source to Publish Date, but none of them seem to affect the module's grid. Can you tell me how to get the Latest Blogs Module to display the published date and not the created date?
Hi Anthony,

Unfortunately, there is no setting for that at this point of time.
However, you can customize it in the file:
.../modules/mod_easybloglatestblogs/tmpl/default_item_heading.php on line 40
change getCreationDate to getPublishDate as shown: http://take.ms/EXSwy

You're suggested to backup the file that you want to customize beforehand for precaution
·
Friday, 18 January 2019 10:53
·
0 Likes
·
0 Votes
·
0 Comments
·
That worked. Thank you!

I am having the same problem with the menu item type "(Posts) Grid Layout". Is there a similar fix?

Thanks,
Tony
·
Friday, 18 January 2019 22:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Can you try to copy and paste codes on uploaded files here http://take.ms/kjf1J(search this file blogs/grid/default.php) and see how it goes.

For more infos on how to do template override, do check them here https://stackideas.com/docs/easyblog/administrators/customizations/template-overriding
·
Saturday, 19 January 2019 10:49
·
0 Likes
·
0 Votes
·
0 Comments
·
It took me a while to find the file, but I did and it worked. The published dates are now showing correctly. Thank you!
·
Wednesday, 23 January 2019 00:08
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Glad to hear your issue has resolved.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding and have a nice day ahead
·
Wednesday, 23 January 2019 10:17
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post