I am trying to: Reschedule a Post or Clone a Post that uses Associated Posts
Link to a page where the issue can be seen: Internal. The issues happens on all instances however we can only duplicate this issue on localhost as to not corrupt the test and production environments.
I expected to see: I expect to see that the associated posts stay when I reschedule or clone a post.
Instead, I got: On reschedule, all associated posts are deleted.
Clone a Post is not something that WordPress does natively, and setting up relationships requires several actions fired, such as save_post(), which in turn fires several Toolset actions who store the right data for each post, relation and related data.
These are as well proprietary to Toolset if it comes to relationships since we use Custom Tables to store some of its data.
Scheduled Posts cannot be connected to other posts, I just reported that yesterday.
It means you will get errors if scheduled posts are connected - it won't work.
What I need to know is:
- how exactly are posts "cloned" (it won't work with relationships anyway, but maybe you can re-hook our code to make it work)
- what do you mean with "reschedule"? The WordPress native "schedule posts" feature?
Then, that is broken and won't work currently, however we are working on that issue.
Hi Beda, yes it is being cloned by a third party tool so I understand why the associations dont transfer over. And yes we are using the WordPress native "schedule posts" feature an the associations aren't caring over, I understand now that this is a bug and you are working the issue.
My question is answered now. Thank you!