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

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.

本文标签: Changing quotsubmitted on datequot of comments