WordPress:WPMU Site Wide Categories

来自站长百科
Xxf3325讨论 | 贡献2008年9月24日 (三) 14:30的版本 (新页面: '''Note:''' Site wide tagging is introduced in WPMU version 1.3, so this approach might be considered obsolete. This solution uses a separate standard single-user wordpress install to re...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

Note: Site wide tagging is introduced in WPMU version 1.3, so this approach might be considered obsolete.

This solution uses a separate standard single-user wordpress install to read the sitewide feed plugin from MU.

Then using a category plugin, it makes tags.

Please help evolve this documentation

This documentation was gleamed from the thread at http://mu.wordpress.org/forums/topic.php?id=3247&replies=68 : I refactored it here to allow the instructions to evolve without incurring extra complexity.

  1. On your *wpmu install*, download and install the wpmu-sitewide-feed plugin, and get it working.
    1. http://www.itdamager.com/plugins/wpmu-sitewide-feed/
  2. Install a copy of Single User Wordpress somewhere handy. Dr. Mike put his in http://daria.be/tags
    1. As an aside, make sure you have this name blocked out from your WPMu install or otherwise you're going to have issues.
  3. Go through your Single User Wordpress install that you have setup for the tags and make the following changes:
    1. On Admin->Options->General
      1. uncheck 'Anyone can register' is unchecked
    2. On Admin->Options->Reading:
      1. change the Syndication Feeds to Summary (Optional but suggested)
      2. Bump up the Show the Most Recent: to something like 25. (Again optional but what the hey)
    3. On Admin->Options->Privacy
      1. Change Blog Visibility to 'I would like to block search engines, but allow normal visitors'
      2. VERY IMPORTANT! This way you're not sending out pings to the posts you're importing. Did I say how important it was to turn off those options?
    4. On Admin->Options->Discussion
      1. VERY IMPORTANT! Turn off the first three options under 'Usual settings for an article':
      2. Turn off "Attempt to notify any Weblogs linked to from the article (slows down posting.)"
      3. Turn off "Allow link notifications from other Weblogs (pingbacks and trackbacks.)"
      4. Turn off "Allow people to post comments on the article"
      5. Turn on "Before a comment appears:An administrator must always approve the comment" (your install is not for original comment
    5. On Admin->Options->Permalinks
      1. Change Permalinks to 'Date and name based'
  4. On the Single User Wordpress
    1. Download and enable the tag-replace-post-link.php plugin: http://heftagaub.wordpress.com/2007/03/17/sitewide-tags-for-wpmu-without-core-changes/
  5. On WPMU, Admin->SiteAdmin->Sitefeed
    1. Change Trigger Blog Id to such a high number that it does not refer to an active blog. Say 1000. (You will change it back after the first import.)
  6. Download the reworked WP-Autoblog - http://wpmudev.org/project/wp-autoblog is a copy uploaded by someone.
    1. No sign of the version by Dr. Mike, "that I'm going to stick up over in http://wpmudev.org once I get this finished." (http://daria.be/tags/wp-autoblog.phps is a 404 Not Found.)
  7. Install the wp-autoblog plugin
  8. Activate the wp-autoblog plugin
  9. Make sure you did remember to stop the pings as above. (Admin->Options->Discussion, above)
  10. On your tag system install, go Dashboard -> Options -> WP Autoblog
    1. Enter the URL of your WPMuFeed into the basic settings box on the left. I also have chosen the Excerpt and give them credit options.
  11. Double check the pings are in fact turned off. :)
  12. On the Single User Wordpress, Options->WP AutoBlog, Run Script Now. It should import all the posts from MU into the single user worpress.
  13. On WPMU, Admin->SiteAdmin->Sitefeed
    1. Change Trigger Blog Id back to the normal number.

The changes to use the tag-replace-post-link.php plugin (or alternatively, hacks to link-template.php) allows the tag system to load the URL of the individual blog as the permalink instead of what it normally does.


Later: http://mu.wordpress.org/forums/topic.php?id=3247&replies=68 http://heftagaub.wordpress.com/2007/03/17/sitewide-tags-for-wpmu-without-core-changes/