Notifications
Clear all

[Solved] Change date format

3 Posts
2 Users
1 Likes
73 Views
Ghoode
Posts: 8
Topic starter
(@ghoode)
Active Member
Joined: 2 months ago

Hi there,

I'd like to change the date format for the list of the last posts (see attached file), I'd like to have "8 novembre". All the other dates are ok only this one is on an English format. Is that possible?

Thanks!

2 Replies
Chris
Posts: 2405
Admin
(@chris)
Support Team
Joined: 1 year ago

Hi @ghoode,

Do these steps:

Navigate to wp-content/plugins/wpforo/themes/2022/layouts/4/ copy forum-thread.php file

create /wpforo/ folder in your current active WordPress theme directory /wp-content/themes/yourtheme/, and keeping the same folder/file structure.

Navigate to wp-content/themes/yourtheme/wpforo/layouts/4/ paste forum-thread.php file

Now edit forum-thread.php file, in wp-content/themes/yourtheme/wpforo/layouts/4/

Find the below code part, it should be on 23 row:

<?php wpforo_date($thread['created'],'ago-date');

and replace that code with these one:

<?php wpforo_date($thread['created'],'j F',true,false);
Ghoode
Posts: 8
Topic starter
(@ghoode)
Active Member
Joined: 2 months ago

Hello @chris,

thanks, that solution works well!

Have a good weekend