我相信你需要的所有信息都在PHP Manual for Date/Time. 此外,建议您使用get_the_date(); 而不是the_date();
Get them month in 3 cap letters?
M 是输出一个月的短文本表示形式(3个字符)的正确格式字符。为什么不能使用CSS将所有三个字母大写?我是说,
text-transform: uppercase; 应该这样做。
Get only 2 last digits of year?
使用小型
y. 它输出一年的两位数表示。
EDIT (to answer the updated question)
的函数参考
the_date(); 在法典中有
special note 也就是说:
如果在同一天发布的页面上有多篇帖子,the_date() 仅显示第一篇帖子的日期(即the_date()). 要重复当天发布的帖子的日期,应使用模板标记the_time() 或get_the_date() (自3.0版起)使用特定于日期的格式字符串。