Change Date format in grid

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 3 months, 2 weeks ago.

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

    Colin F

    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 Reply

    John Smith
    Keymaster

    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

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Change Date format in grid
Your information:




Posted on by  Colin F