{"id":54832,"date":"2015-09-22T05:58:11","date_gmt":"2015-09-22T09:58:11","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=54832"},"modified":"2017-07-28T05:49:27","modified_gmt":"2017-07-28T09:49:27","slug":"cherryframework-3-how-to-change-date-format-in-shortcode-output","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/cherryframework-3-how-to-change-date-format-in-shortcode-output.html","title":{"rendered":"CherryFramework 3. How to change date format in shortcode output"},"content":{"rendered":"<p>\r\n<p>This tutorial will show you how to change date format in shortcode output in Cherry Framework 3 templates.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=sDWt-Kr9MAE?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework 3. How to change date format in shortcode output<\/a><\/p>\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/service-center\/\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-3-(835-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>\r\n<p> 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:<\/p>\r\n<ol>\r\n<li>\r\n<p>Log into your WordPress <strong>dashboard<\/strong>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Navigate to <strong>Appearance > Editor<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output-300x250.png\" alt=\"CherryFramework_3_How_to_change_date_format_in_shortcode_output\" width=\"300\" height=\"250\" class=\"aligncenter size-medium wp-image-54833\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output-300x250.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output-150x125.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output.png 600w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Find and open <strong>my_function.php<\/strong> file:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_1-300x139.png\" alt=\"CherryFramework_3_How_to_change_date_format_in_shortcode_output_1\" width=\"300\" height=\"139\" class=\"aligncenter size-medium wp-image-54834\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_1-300x139.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_1-150x69.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_1.png 964w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Find this line:<\/p>\r\n<pre class=\"brush:php\">$output .= get_the_time(d).&quot;.&quot;.get_the_time(m);<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_3-300x103.png\" alt=\"CherryFramework_3_How_to_change_date_format_in_shortcode_output_3\" width=\"300\" height=\"103\" class=\"aligncenter size-medium wp-image-54835\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_3-300x103.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_3-150x51.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_3-1024x350.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_3.png 1184w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>And swap position of (m) with (d) in the code, so the new line looks like this:<\/p>\r\n<pre class=\"brush:php\">$output .= get_the_time(m).&quot;.&quot;.get_the_time(d);<\/pre>\r\n<\/li>\r\n<li>\r\n<p>Click<strong> Update file <\/strong>button:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_31.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_31-300x103.png\" alt=\"CherryFramework_3_How_to_change_date_format_in_shortcode_output_3\" width=\"300\" height=\"103\" class=\"aligncenter size-medium wp-image-54836\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_31-300x103.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_31-150x51.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_31-1024x350.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/CherryFramework_3_How_to_change_date_format_in_shortcode_output_31.png 1184w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Refresh your page in the browser to see the changes.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=sDWt-Kr9MAE?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework 3. How to change date format in shortcode output<\/a><\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to change date format in shortcode output in Cherry Framework 3 templates.<\/p>\n","protected":false},"author":54,"featured_media":54839,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[843,804,2060,1415,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/54832"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/54"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=54832"}],"version-history":[{"count":2,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/54832\/revisions"}],"predecessor-version":[{"id":82300,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/54832\/revisions\/82300"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/54839"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=54832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=54832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=54832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}