Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
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 Feb 12 '13 at 7:24
add comment

2 Answers

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.

share|improve this answer
add comment

If you want to edit the date of a comment, you probably should do that in the database.

Comment database view

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.