Change Date format in grid

  • This topic has 1 reply, 2 voices, and was last updated 4 years ago by J. Davis.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #504474
    Colin F


    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,

    J. Davis


    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,

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