Hi bro, i have this format “l, j F Y” with preview “Lunes, 4 Junio 2018”, i need something “Lunes, 4 de Junio de 2018”, that is possible, can u help me for get that format?
-
This topic was modified 8 years by
johnfelipe.
Hello,
Please read this guide on how to customize dates in WordPress:
http://www.wpbeginner.com/beginners-guide/how-to-change-date-and-time-format-in-wordpress/
Thank you!
Hi,
You can’t add that as a word in the WordPress date format field. Only this syntax is recognized
– https://codex.wordpress.org/Formatting_Date_and_Time
So ‘d’ will be interpreted as day of the month, while ‘e’ will be the time zone.
bro is not “d” is “de” like “of”, i need “Lunes, 4 de Junio de 2018″, with l, j F Y now i need “of” between number and month, do u get me?
-
This reply was modified 8 years by
johnfelipe.
WordPress will interpret “de” like a “d” and “e” in that date field
– https://www.screencast.com/t/H1HZxM9X
Please use the supported characters for the date format, according to the WordPress codex.
I just bought this Newspaper theme for updating of a site that has previously been using a different theme. This Newspaper seems really good. But I have a problem with the date format.
I need to format the date for Chinese like Y年m月d日 and I need that show in all the post meta — on the single.php, on the frontpage, on the archives, search, etc.
That is the normal and usual way to format dates in Chinese.
I cannot alter the date in General > Settings because that change affects negatively other things, especially syndication and RSS feed date specifications. You see, if you alter the date format in General > Settings, things may look nice on WordPress frontend, but you will face problems with synchronization and validation if you are syndicating content especially via ATOM or RSS to other sites that require the date in an acceptable format.
So that’s why I cannot alter the date format in General > Settings, and why I would rather be able to change it at the Theme level. It seems like Newspaper lacks this ability and the only way would be to one-by-one create separate child theme files for single.php, page.php, search.php, etc. to manipulate the date format on those areas. But this is not really a great solution. A better solution would be to change the date at the Theme level.
Is there any possibility that this could happen with Newspaper? Any method to add a function? Other themes I’ve used for other projects sometimes have a date format field to change it within the theme only.
For example, here is a function that alters the date, but is there a way to tweak it for Newspaper?
<!--?php <br ?--> function custom_themify_loop_date($date_fmt) {
return 'l, F j, Y';
};
add_filter('themify_loop_date', 'custom_themify_loop_date');
?>
Code from here: https://themify.me/docs/date-time-format
Sorry, one more thing. Because this site is a frequenbtly updated news website, I need to include H:i for the time. And I need to show the timezone: CST.
So an example time output I need to show on posts is like this:
2018年08月24日 — 22:14 CST
That is a standard way Bloomberg and other news outlets output their timestamp.
Hello,
Our theme uses the default WordPress time and date so there is no specic function in our theme for a separate time or date except if you create it custom. Unfortunately we will not be able to help with this as customization services are not part of the theme support.
Please refer to the support policy here: https://forum.tagdiv.com/support-policy-2/
You will need to either use a plugin that can provide the functionality or hire a freelancer to help with creating a custom implementation for your needed functionality.
Thank you!
This is really a very simple task. Just select the Timezone you want, for an example if I need IST as timezone then I need to select Kolkata from Timezone dropdown. Then in the Date Format field select custom and enter the value “M j, Y, h:iA T” in the text box(Remove double quotes while entering the value).
This will be displayed as Apr 3, 2019, 07:46PM IST in your post. If you need the date in any other format then just visit https://codex.wordpress.org/Formatting_Date_and_Time