Please Note: This is a WordPress MU plugin, do not install it on a standalone version of WordPress. WPMU and this plugin require some PHP knowledge. It’s not intended for end users. You have been warned!
This plugin requires the Real Global Terms plugin to be installed.
This plugin will make a copy of every post, on every blog, and put all those copies into one, single blog. It will copy the post as well as the post’s tags and categories. This means that you can search the single blog for all posts across all blogs across your whole site. Likewise for categories and tags. This also means your global blog feed will include all the posts for your whole site.
Each of the copied posts links back to the original post’s permalink. This means the global feed points to each individual post on each individual blog. The plugin also redirects any requests for individual posts on the global blog to the original blog. This should avoid the duplicate content penalty, and ensure all your comments / trackbacks / pingbacks / etc are in one place.
When the post is copied to the global posts, comments and pingbacks are automatically closed, as they should go to the original post.
By default the global blog is blog ID 1, which is normally the main site. However, you can change that. Simply add this line to your wp-config.php file:
Obviously you need to change 1 to be the ID of the blog you’d like to be the global blog!
Alternatively you can set the default blog in a site option with the name ‘global_posts_blog_id’. Currently (May 2008) there is no easy way to set site options from the admin interface, so the first option is probably easier. However, if you want to set it manually, the SQL is probably:
INSERT INTO wp_sitemeta (site_id, meta_key, meta_value) VALUES (1,'global_posts_blog_id','XXX');
Again, obviously you need to change XXX to the be the ID of the global blog. If you’re not using ‘wp_’ as your table prefix, you will also need to change the table name. If this stuff is all beyond you, this plugin is not for you I’m afraid.
This plugin must be installed for all blogs on your site, so it must be in the ‘wp-content/mu-plugins’ directory. If you install it in the ‘wp-content/plugins’ directory the world may very well end.
I’m happy to answer developer questions here and there, but I can’t provide end user support for this plugin. If you can’t read the code and understand what it does, I’d suggest avoid using the plugin. If you ask me very nicely and promise to send me chocolate cake, I might be able to help. But it’s strictly at your own risk. Please post any questions in the comments on this page.
0.2.2 – Added a generic filter to allow blog exclusion
0.2.1 – Added ignore mature option
0.2 – First public release