distributor icon indicating copy to clipboard operation
distributor copied to clipboard

Need Option To Distribute Post Publish Date/Time

Open timnolte opened this issue 8 years ago • 7 comments

The scenario that I have is I am posting family activities to my personal blog and distributing to a family blog. I'd like the family blog to reflect the date/time of when it happened instead of when I got around to pushing the post to that site. I guess having automatic pushes to other sites could sort of resolve this since the push would happen closer to the time of the initial post.

timnolte avatar Apr 09 '18 15:04 timnolte

Is this an internal or external connection?

tlovett1 avatar Apr 10 '18 22:04 tlovett1

@tlovett1 for my use this would be internal, though it seems like this should be either configurable per connection, or presented as an option during distribution both for internal and external.

timnolte avatar Apr 10 '18 23:04 timnolte

Got it. Well for internal you have the original post ID. You could easily switch_to_blog and get the original post date. Obviously that would require some custom code though.

tlovett1 avatar Apr 10 '18 23:04 tlovett1

I also needed this, but for items being pulled in bulk from an External Connection. My quick and dirty fix was to comment out the 4 lines that unset the post date data here:

https://github.com/10up/distributor/blob/master/includes/classes/ExternalConnections/WordPressExternalConnection.php#L285:L288

image

I agree that it would be good to have it settable per-connection.

meredevelopment avatar May 01 '18 15:05 meredevelopment

Hi there,

I also agree on this.

Even more settings would be welcome per added connection.

Webagent05 avatar Mar 13 '19 18:03 Webagent05

We're in the same scenario: Cross-posting blogposts between two sites. We'd like to maintain the originally published date. At the moment, we unlink the post and then change the date.

bjohas avatar Apr 29 '21 19:04 bjohas

My initial reaction is that a hook for this might suffice, not certain we'd need/want to add a Setting to handle this but open to input from others?

jeffpaul avatar Jul 19 '21 17:07 jeffpaul