Home Forums WordPress Plugins Content Editor Change Date format in grid

This topic contains 1 reply, has 2 voices, and was last updated by  John Smith 1 month, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #504474 Reply

    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,

    #505178 Reply

    John Smith


    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)
Reply To: Change Date format in grid
Your information: