Re: Issue with default groups widget
Thank you, worked perfectly!
In case anyone else runs into this issue, here are the changes
bp-groups/bp-groups-widgets.php
line 29:
<?php if ( bp_has_groups( 'type=popular&per_page=' . $instance['max_groups'] . '&max=' . $instance['max_groups'] ) ) : ?>
change to:
<?php if ( bp_has_groups( 'type=popular&user_id=""&per_page=' . $instance['max_groups'] . '&max=' . $instance['max_groups'] ) ) : ?>
One last question:
I use widget_logic on my sidebars, what is the logic to say ‘is on members profile page’?
Basically I duplicated the groups widget, one with the user logic, and one without. I can use my modified version in the footer, and the old one in the sidebar. That way I can also show what groups the member belongs to.
I only want that widget to show up on buddypress profile pages. I just don’t see the logic statement anywhere.