Skip to:

Re: How do I stop BP from overriding default parameters passed to the template loop?



In global.js, I believe the function that handles this is bp_init_activity(). If you comment the call to this function out (around line 15 of global.js), it should stop the cookie from overriding your default settings.

HOLD THE PHONE. Simply commenting out bp_init_activity() doesn’t work. Reloading the page resets the tab, but the content stays the same as the previous selected tab.

Next, I will try Andy’s suggestion, but I don’t understand exactly what he is suggesting:

You can add them in the template to force override (create a child theme and override activity/activity-loop.php):

<?php if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ) . ‘&scope=friends’ ) ) : ?>

Posted 1 day ago #

Is he suggesting that the child theme have different activity loop files for each navbar entry? So you would have





And then maybe make the navbar links into HTML forms and call those loops conditionally based on which HTML form is clicked?

Skip to toolbar