[contact-form-7 id="24078" title="Feedback EN"]

Featured templates

CherryFramework 3. How to change date format in shortcode output

This tutorial will show you how to change date format in shortcode output in Cherry Framework 3 templates.

CherryFramework 3. How to change date format in shortcode output

Some of the templates display date in this format: Day/Month. If you would like to change it to display Month first, you should make the following changes:

  1. Log into your WordPress dashboard.

  2. Navigate to Appearance > Editor:

    CherryFramework_3_How_to_change_date_format_in_shortcode_output

  3. Find and open my_function.php file:

    CherryFramework_3_How_to_change_date_format_in_shortcode_output_1

  4. Find this line:

    $output .= get_the_time(d).".".get_the_time(m);

    CherryFramework_3_How_to_change_date_format_in_shortcode_output_3

  5. And swap position of (m) with (d) in the code, so the new line looks like this:

    $output .= get_the_time(m).".".get_the_time(d);
  6. Click Update file button:

    CherryFramework_3_How_to_change_date_format_in_shortcode_output_3

  7. Refresh your page in the browser to see the changes.

Feel free to check the detailed video tutorial below:

CherryFramework 3. How to change date format in shortcode output