You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I would like to get post data (and attachments, custom post types) from other sites within the same multi-site network. Is there any way already existing to do that? I'm currently resorting to using apiFetch and writing my own api endpoints, and using switch_to_blog() on the php end, but I was hoping there was a more straightforward way.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I know how to get post data using
But I would like to get post data (and attachments, custom post types) from other sites within the same multi-site network. Is there any way already existing to do that? I'm currently resorting to using
apiFetch
and writing my own api endpoints, and usingswitch_to_blog()
on the php end, but I was hoping there was a more straightforward way.Beta Was this translation helpful? Give feedback.
All reactions