Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,003
- How-to & Troubleshooting
- 129,526
- Creating & Extending
- 25,789
- Requests & Feedback
- 9,495
- Third Party Plugins
- 9,781
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,169
-
If you want to get content from different blogs on a WPMU/WPMS installation on a single BuddyPress page, you’ll probably have to use the function switch_to_blog(), and its partner restore_current_blog(). For example, if you run switch_to_blog(5) from your BP blog (I’m assuming it’s blog #1), any blog-specific functions you run (such as query_posts) will be with reference to blog 5 instead of blog 1. Use restore_current_blog() to switch back to blog 1.
This method is pretty resource intensive, though, so it might not be the best choice if you’ve got a huge site.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS