admin管理员组文章数量:1417070
Is there a way to update a post (published) date when you change the category/taxonomy to a specific one?
Example: - Post type "Projects" - 2 categories: Progress/ Done When you change the category for the post "Project One" (from Progress) to Done, the published date has to be the currect date and time, zo it will be the last published post.
Is there a way to update a post (published) date when you change the category/taxonomy to a specific one?
Example: - Post type "Projects" - 2 categories: Progress/ Done When you change the category for the post "Project One" (from Progress) to Done, the published date has to be the currect date and time, zo it will be the last published post.
Share Improve this question asked Aug 11, 2019 at 8:17 DannyDanny 136 bronze badges1 Answer
Reset to default 0You can display the date the post was last modified, using the Default date format setting (e.g. F j, Y) from Administration > Settings > General. Here is a code using Default date formate.
<p><?php printf( __( 'Last modified: %s', 'textdomain' ), get_the_modified_date() ); ?></p>
本文标签: Update post (published) date when changing category
版权声明:本文标题:Update post (published) date when changing category 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745252078a2649882.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论