Categories

Featured templates

CherryFramework 3. How to change date format in shortcode output

Kate Daniels September 22, 2015
Rating: 5.0. From 2 votes.
Please wait...

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

Premium Wordpress Templates
This entry was posted in WordPress Tutorials and tagged date, format, output, shortcode, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

Live Chat
We help you to choose the right product.