Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] Buddypress activity always jumps to TOP

@r-a-y

Keymaster

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;
Skip to toolbar