Skip Navigation

[Resolved] Use cred form on site X to create post on site Y in multi-site setup

This support ticket is created 7 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Shane 7 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#555665

On a multisite installation at example.com we would like to use a cred form on site X (example.com/site-X) to create a post on site Y (example.com/site-Y).

We already tried to perform a site switch with the switch_to_blog function in the cred_before save_data hook, but the post is not created on the target site.

It would be great if you could provide us with a working solution...

Thanks in advance!

#555677

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tako

Thank you for contacting our support forum.

Unfortunately no this wouldnt be possible because CRED can only create posts to its local site. Meaning wherever CRED is installed it can only add posts to that website's database.

Thanks,
Shane