Title: Suggestion for backdated posts
Last modified: January 26, 2021

---

# Suggestion for backdated posts

 *  [Andreas Brain](https://wordpress.org/support/users/abrain/)
 * (@abrain)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/suggestion-for-backdated-posts/)
 * Hi,
 * I develop the plugin [Einsatzverwaltung](https://wordpress.org/plugins/einsatzverwaltung/),
   and you were in contact with a user of that plugin in the past, about auto-tweet
   not working. I think I might have a solution for you.
 * Just as a bit of background: The user of my plugin received the answer that this
   would be due to the difference in seconds between `post_date` and `post_modified`.
   While this can be the case, more often than not these dates will differ by several
   hours or even days. Because these CPTs describe recent events and they should
   appear chronologically correct between the other post types, the `post_date` 
   gets backdated upon publication.
 * As far as I can tell, backdated posts are only accepted if the publication date
   was modified manually (i.e. `$_POST['edit_date']` is set). While checking the
   logic if something is being published for the first time, I could not help but
   think if using [transition_post_status](https://developer.wordpress.org/reference/hooks/transition_post_status/)
   would make things easier. One comment reads `can't catch posts that were set 
   to a past date as a draft, then published`, which should be perfectly fine with
   the mentioned hook as well.
 * What do you think?
 * Cheers,
    Andreas

Viewing 1 replies (of 1 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/suggestion-for-backdated-posts/#post-13973132)
 * I’ll be honest: there was a reason that I’m not using `transition_post_status`,
   but I don’t remember it anymore. It may not be a valid reason – with a plug-in
   that I’ve been maintaining for almost 13 years, there have been many, many points
   where a past bug has been resolved, and it is possible that is one.
 * I’ll give it some thought when I have a chance.

Viewing 1 replies (of 1 total)

The topic ‘Suggestion for backdated posts’ is closed to new replies.

 * ![](https://ps.w.org/wp-to-twitter/assets/icon-256x256.png?rev=2997308)
 * [XPoster - Share to Bluesky and Mastodon](https://wordpress.org/plugins/wp-to-twitter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-to-twitter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-to-twitter/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-to-twitter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-to-twitter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-to-twitter/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/suggestion-for-backdated-posts/#post-13973132)
 * Status: not a support question