Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,892
- Creating & Extending
- 25,913
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,404
- Miscellaneous
- 9,183
-
You’re using ob_start() and ob_end_clean() in the wrong manner.
You need to save the contents of the activity loop into a variable and then return the contents for the shortcode to work.
Something like:
ob_start();
// THE CODE YOU HAVE FOR THE ACTIVITY LOOP
// this is the part you're missing
$output = ob_get_contents();
ob_end_clean();
// this is the part you're missing
return $output;