use system script advertising in wordpress multisite

I have write : <?php $blog_id = get_current_blog_id(); ?> <?php if( 1 == $blog_id ); ?> <div id=””><script src=””></script><script src=”” ></script></div> <?php elseif( 2 == $blog_id ): ?> <div id=””><script src=””></script><script src=”” ></script></div> <?php else: ?> Default script <?php endif; ?> It correct !?

Is Multisite the RIGHT option for my case?

There is really no answer given the limited facts in the question. Are you requiring that users login to see pages/data? If not I don’t see why you would care to share user tables. There will be some things that multisite will handle better but there will be some things (handling certain plugins) that multisite … Read more

How do i get custom metabox data from each multisite blog?

For those who stumble upon this in the future, this was actually answered by the CMB2 author himself, Michael Beckwith: $sites = wp_get_sites(); $current_site = get_current_blog_id(); foreach ($sites as $site) { $details = get_blog_details($site[‘blog_id’]); $zSite = $details->blog_id; $mycolor=””; $mclass=””; if( $current_site == $zSite ) { $mclass=”active”; } switch_to_blog( $site[ ‘blog_id’ ] ); $mycolor = get_option( … Read more