• Hi,

    I develop the plugin 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 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

    (@joedolson)

    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.