It's the first time I am using the multisite option. I must be searching for the wrong terms, because I can't find the answer to what I think it's a simple problem...

I have 3 sites.

  1. Group Landing site
  2. Group 1 site
  3. Group 2 site

Essentially, Group 1 and Group 2 will have separate contents. However the Group Landing site will have content from both. I would rather not have the user enter the content twice. Using Multisite, is there a way for me to poll content from Group 1 and Group 2, and display it in Group Landing?

If not, what's a better option to share content between sites?

  • what does sharing includes, images, text tags, seo? And what happens when the source is editted or deleted? – Mark Kaplun Sep 30 '14 at 15:12
  • I want to poll content. That means, that I want to be able to run a query and get information from other posts and pages and display on the front end. I am not looking to duplicate content on the backend, or to share content on the backend. So, if the source is deleted than nothing will show on the front-end. – gdaniel Sep 30 '14 at 16:23
  • then please edit the question to reflect that. – Mark Kaplun Sep 30 '14 at 18:57
  • That's exactly what my questions says... "is there a way for me to poll content from Group 1 and Group 2, and display it in Group Landing?" – gdaniel Sep 30 '14 at 19:53

You could use the function switch_to_blog


switch_to_blog( $site_id );
$post = get_post( $post_id );

It should do exactly what you need. After switching you can use a custom query to get the relevant information

  • As increase, after switch get your data, like post and then use the function restore_current_blog(). – bueltge Oct 1 '14 at 11:20
  • Doesn't this all you to query content only from a specific site? What if I want to query all posts of the same type across all sites? – PeterTheLobster Jan 25 '17 at 16:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.