I let users add posts in draft status. After I check and see that everything is ok, I publish them. I noticed that drafts created two days ago change date after being published. Is there any way of keeping that original date?
Leave a Reply
You must be logged in to post a comment.
you need to manually set the publish date.
The code below probably needs some adjusting, but the trick here is to obtain the date of the first revision and apply it to the post being published: