Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Content Editor Change Date format in grid
- This topic has 3 replies, 2 voices, and was last updated 1 month, 1 week ago by J. Davis.
- AuthorPosts
- April 10, 2017 at 6:23 am #504474Colin FGuest
Hi,
Just posting another message because I’m looking for a way to change the date format in grid.
As you can see on this screenshot, the grid creates a mix between the french month name (avril-mars) and the english number (27th, 3rd…).
Is there any way to prevent that? Maybe change the format to a dd/mm/yy?
Thanks a lot,
ColinApril 11, 2017 at 3:21 pm #505178J. DavisKeymasterHello,
Yes, you need to add new Post Style template to edit the format of the date. You can create your own template and copy the content of template1.php (from \wp-content\plugins\motopress-content-editor\includes\ce\shortcodes\post_grid\templates directory)
Then find code below
<?php echo get_the_date('F jS, Y') ?>
and add this one isntead
<?php echo get_the_date() ?>
Best regards,
JohnFebruary 6, 2024 at 2:29 pm #1568631Glenford WilliamsonParticipantWhere do I change the date from 29/04/2024 to 04/29/2024? How do I do that?
Thanks!
February 13, 2024 at 7:55 am #1572101J. DavisKeymasterHi Glenford,
As a rule, the date format is configured at Settings > General (WordPress settings). - AuthorPosts
- You must be logged in to reply to this topic.