Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

[Solved] Change date format

3 Posts
2 Users
1 Reactions
1,045 Views
Posts: 8
Topic starter
(@ghoode)
Active Member
Joined: 3 years 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: 3611
(@chris)
Famed Member
Joined: 4 years 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);
Posts: 8
Topic starter
(@ghoode)
Active Member
Joined: 3 years ago

Hello @chris,

thanks, that solution works well!

Have a good weekend