php - Wordpress date format -
is possible utilize constant strings in date formatting in wordpress?
something like:
class="lang-none prettyprint-override">year:y, month:f
which translate to:
class="lang-none prettyprint-override">year:2012, month:february
yes that's possible. wordpress uses php: date-function format date, can utilize next format on general settings page of blog.
to utilize constant string need escape every character should not parsed part of date:
\y\e\a\r: y, \m\o\n\t\h: f
this formatting string result in "year: 2013, month: february".
see wordpress codex on formatting date , time.
php wordpress date-format
No comments:
Post a Comment