bp_get_options_nav repeating?
-
Hey there, I’m getting an issue where the tabs from bp_get_options_nav on groups/single repeat several times after the member list. It only appears when I add this code to output a members groups within the list – can you tell me what I’m doing wrong here? It looks like it’s duplicated for each ‘group’ that gets printed..?
if ( bp_has_groups(‘type=alphabetical&page=0&user_id=’ . bp_get_group_member_id()) ) :
while ( bp_groups() ) : bp_the_group();
etc.
endwhile;Thanks, Jon
-
BP version and theme name please !
Sorry – yes, v. 1.7 beta 1, using bp-default but with slight mods in a child theme, the code here being one example.
Thanks, Jon
Can’t help much unless you show us the code. It’s probably in a loop.
Having trouble posting code…I posted a screenshot here: http://www.y-o.co/bp/screenshot.png. The problem is the top level of tabs on this page (home, members, admin, etc) repeat after the members loop several times in some cases, and is caused by bp_has_groups(), which I can fix by removing this loop (starting at //output groups.
Thanks, Jon
Here’s a screenshot of the /members/groups/group(single)/ page with the repeating menu below:
http://www.y-o.co/bp/members-loop.png
Thanks, Jon
Do you try to show the groups your members belongs on the members directory ?
I guess this should prefarably be done with a function.
I notice a div float rigth line 53. Remove it and see what you get.Also, have you tested with bp-default alone ? Have you same issue when not using your child theme ?
- The topic ‘bp_get_options_nav repeating?’ is closed to new replies.