Small multisite setup, two very different sites, both need to access an event
custom post type. I don’t want to duplicate posts (there are some plugins that “broadcast” a post to the network).
switch_to_blog(1)
will get me part way there, where blog 1
is the “master” blog that contains the event
data, as far as archive-style pages that list all the events. But my concern is that the URL/permalink of the event, when viewed from blog 2
will point to blog 1
, and following that permalink will then take the user to the other blog, confusing the user.
Is there a solution (possibly using rewrite) that would allow an event post at //blog1/events/event1
to appear as //blog2/events/event1
when viewed from blog 2
?