Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,691
- How-to & Troubleshooting
- 128,219
- Creating & Extending
- 25,679
- Requests & Feedback
- 9,405
- Third Party Plugins
- 9,753
- Showcase
- 3,321
- Ideas
- 1,348
- Miscellaneous
- 8,879
-
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