Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

MultiSite - Main Taxonomy WordPress

  • REFUNDED

I want to create "city" taxonomy in all sites of MultiSite. But i want to show same listing in every blog and i want to edit it from only master site and not letting other blog owners edit it. I think only solution for this is setting a master site for specific taxonomy in MultiSite. So when someone try to use "city" taxonomy from other blogs, they will see master site's city list. How can i do that?

First of all, I will add these capabilities to city taxonomy:

'capabilities' => array(
'manage_terms' => 'manage_network',
'edit_terms' => 'manage_network',
'delete_terms' => 'manage_network',
'assign_terms' => 'edit_posts'
),

So only I will manage terms. And will use this:
http://wordpress.stackexchange.com/questions/18578/taxonomy-dropdown-metabox-in-the-back-end
So in post panel there will be dropdown and client will select only 1 of "parent city->child city"

I tried this:

// Skip Master Site
global $blog_id;
if($blog_id != 1) {
// Switch
switch_to_blog(1);

$terms = get_terms( $brand_taxonomy, 'hide_empty=0');

// Restore
restore_current_blog();
} else {
$terms = get_terms( $brand_taxonomy, 'hide_empty=0');
}

in drop-down solution of above link and it displays main site's taxonomy list but there is problem for saving. Somehow need to save taxonomy on alt blog first..

http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/
This plugin doing it. It saves new taxonomy if its not saved. I tried to understand but couldnt handle it.

Those links maybe helps you to help me:
http://scottbasgaard.com/2011/03/multisite-taxonomy-sync-updates-to-my-multisite-category-sync-plugin/
http://wordpress.stackexchange.com/questions/8357/inserting-terms-in-an-hierarchical-taxonomy


You can offer me completely different solution if you want. I just want a master taxonomy that contains same terms in all multisite sites and only super admin will edit it.


Answers (1)

2011-09-27

Abdessamad Idrissi answers:

did u check; http://scottbasgaard.com/2011/03/multisite-taxonomy-sync-updates-to-my-multisite-category-sync-plugin/


Ünsal Korkmaz comments:

i already gave that link in question