我有我的WordPress网站财务buzz。我想显示发布博客的确切日期,不像发布2天前或1个月前。此外,如果任何博客文章被编辑,我想显示最后修改日期。
请提供实现此功能的函数代码。
我相信get_the_date()
https://developer.wordpress.org/reference/functions/get_the_date/和get_the_modified_date()
https://developer.wordpress.org/reference/functions/get_the_modified_date/就是你要找的。