0

I am using Wordpress Multisite Network and i am having problems regarding masters to its subsite. I am not able to see the widgets or Menus which were created on Main website to its Sub-site. When i am going to check in the Database whole tables are different of every subsite. So is there any way to Sync Masters like category, Widgets, Menu, Settings etc of Sub-site to its Main Website. Any help would be appreciated. Thanks in Advance.

  • Your subsites are not connected per default. Did you already stumble upon functions like wp_get_sites() or switch_to_blog()? – Sven Dec 20 '14 at 19:28
  • yes @Sven do you have any solution ? – AliasgerSW Dec 23 '14 at 5:21
1

That's an old question, if someone like me landed on this page and want some-sort of custom solution for WORDPRESS MULTISITE MENU sharing across all network sites,

Not only menu you can use the same method to share anything other then widgets across all the network sites.

here is the solution : Edit your Header.php

//store the current blog_id - Use this function at the start of the function that you want to share

global $blog_id;
$current_blog_id = $blog_id;

//switch to the main blog which will have an id of 1
switch_to_blog(1);

//output the WordPress navigation menu - incase of menu-sharing use this

wp_nav_menu( 
   //add your arguments here
);

//switch back to the current blog being viewed - before ending of the function

switch_to_blog($current_blog_id); 
0

On default is each site in the network a single site in the context, menu, settings, widgets. But you can sync about custom source or plugins, like

Also you can use the Multilingual Press plugin. This have a API fit synchronization about the sites, there habe a relationship between different sites.

  • Thnx for replying @bueltge. I am using above plugins now. Hope i'll succeed on this. – AliasgerSW Dec 22 '14 at 6:05
  • I implemented yd-wpmu-sitewide-options plugin. But when i create new sub-site and click to visit that sub-site, "Whoops! Page Not Found" error occurs. – AliasgerSW Dec 23 '14 at 13:05
  • More a question for the support forum of the plugin, maybe a bug. – bueltge Dec 23 '14 at 14:36
  • Ok. Thnx @bueltge – AliasgerSW Dec 24 '14 at 11:35

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.