admin管理员组文章数量:1024593
How do I change the "submitted on date" of a comment to an earlier date? I want to change the date that is displayed to the readers. As far as I know, I can change the date of the post by clicking the "quick edit" option. Is there something similar I can do with comments?
How do I change the "submitted on date" of a comment to an earlier date? I want to change the date that is displayed to the readers. As far as I know, I can change the date of the post by clicking the "quick edit" option. Is there something similar I can do with comments?
Share Improve this question edited Feb 12, 2013 at 8:26 user27338 asked Feb 12, 2013 at 7:00 user27338user27338 113 bronze badges 1- 3 But where do you want to do this, backend, frontend? Do you want to change only the date that is displayed in the site or do you want to change the date that's stored in the database? Please, expand your Question, you are free to edit it whenever needed. – brasofilo Commented Feb 12, 2013 at 7:24
2 Answers
Reset to default 2I presume you mean the format of the date that is displayed for the comment.
Different themes will do this different ways, but in general there should be a comments.php
file which should contain what makes up a comment.
In here should be wp_list_comments();
You will need to add a callback in here which will allow you to override the comment functionality and create your own from scratch.
If you want to edit the date of a comment, you probably should do that in the database.
How do I change the "submitted on date" of a comment to an earlier date? I want to change the date that is displayed to the readers. As far as I know, I can change the date of the post by clicking the "quick edit" option. Is there something similar I can do with comments?
How do I change the "submitted on date" of a comment to an earlier date? I want to change the date that is displayed to the readers. As far as I know, I can change the date of the post by clicking the "quick edit" option. Is there something similar I can do with comments?
Share Improve this question edited Feb 12, 2013 at 8:26 user27338 asked Feb 12, 2013 at 7:00 user27338user27338 113 bronze badges 1- 3 But where do you want to do this, backend, frontend? Do you want to change only the date that is displayed in the site or do you want to change the date that's stored in the database? Please, expand your Question, you are free to edit it whenever needed. – brasofilo Commented Feb 12, 2013 at 7:24
2 Answers
Reset to default 2I presume you mean the format of the date that is displayed for the comment.
Different themes will do this different ways, but in general there should be a comments.php
file which should contain what makes up a comment.
In here should be wp_list_comments();
You will need to add a callback in here which will allow you to override the comment functionality and create your own from scratch.
If you want to edit the date of a comment, you probably should do that in the database.
本文标签: Changing quotsubmitted on datequot of comments
版权声明:本文标题:Changing "submitted on date" of comments 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745608216a2158849.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论