Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Possible Duplicate:
WordPress Multisite - global categories

I have a series of blogs that will use some, but not all, of the same posts. We have one blog where many of the posts are written, and then shared down to the other blogs, based on topic. We cannot accomplish this properly using categories, though we've thought of that.

All the blogs use the same theme, the theme changes slightly based on the blog. I would like to do something like this:

register_taxonomy(
    'some_categories',
    array('post'),
    array ('hierarchical' => true,
    'label' => __('Some Awesome Categories'),
    'singular_label' => __('Some Awesome Category'),
    'query_var' => 'some_categories')
    );

We're using a path install so if I got to http://domain.com/blog1/wp-admin/ and add some categories, they do not show up at http://domain.com/blog2/wp-admin/.

Is this possible? I know that WP 3.0 has a different set of tables for each blog, so this may not be possible.

TIA

share|improve this question
1  
Are you talking about multiple wordpress installations or one installation in Multisite mode? –  hakre Sep 8 '10 at 14:16
add comment

marked as duplicate by Rarst Jun 4 '11 at 9:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

This might be of help. According to the function reference, you can "define custom taxonomies in a themes's functions.php template file."

So, this could work regardless of whether you're on a multi-site install or not (though, if I recall how multisites are setup, it might be slightly easier to share the templates across all blogs).

share|improve this answer
add comment

My recommendation would be to place the code that defines your custom taxonomies into a plug-in and activate the plug-in site wide. This will cause the new taxonomies to become active on all the sites in your network.

share|improve this answer
1  
That would share the structure of the taxonomy, but not its content. Categories added on one blog would not show up on another. –  Marcus Downing Apr 20 '11 at 8:29
add comment

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