最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Changing "submitted on date" of comments

programmeradmin3浏览0评论

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
Add a comment  | 

2 Answers 2

Reset to default 2

I 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.

发布评论

评论列表(0)

  1. 暂无评论