If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

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