Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

<?php
$master_site = 1;
...when city taxonomy need:
switch_to_blog( $master_site );
...use list of "city" taxonomy"...
restore_current_blog();
share|improve this question
this is insteresting other solution: scottbasgaard.com/2011/03/… maybe helps you to help me ^^ – Ünsal Korkmaz Sep 17 '11 at 21:15
1 more example: shibashake.com/wordpress-theme/… – Ünsal Korkmaz Sep 25 '11 at 14:58

1 Answer

First when you register your custom taxonomy use the capabilities argument and define your custom capabilities:

'capabilities' => array(
    'manage_terms' => 'manage_cities',
    'edit_terms'   => 'edit_cities',
    'delete_terms' => 'delete_cities',
    'assign_terms' => 'assign_cities'
),

and only give your users the assign_terms capability this way they wont be able to create new terms, only YOU.

Then use the nice solution you linked in the comment , change the $taxonomies_to_sync array according to your taxonomy, and you should be fine.

share|improve this answer
That link is not a proper solution imo. I am talking about lots of sites.. That plugin will probably exceed php run time. btw.. shibashake.com/wordpress-theme/… cant we use this? – Ünsal Korkmaz Sep 25 '11 at 14:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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