Change Date format in grid

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #504474

    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…).

    date

    Is there any way to prevent that? Maybe change the format to a dd/mm/yy?

    Thanks a lot,
    Colin

    #505178

    Hello,

    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,
    John

    #1568631

    Where do I change the date from 29/04/2024 to 04/29/2024? How do I do that?

    Thanks!

    #1572101

    Hi Glenford,
    As a rule, the date format is configured at Settings > General (WordPress settings).

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.