Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_get_options_nav repeating?


  • JohnnyJonJon
    Participant

    @johnnyjonjon

    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

Viewing 6 replies - 1 through 6 (of 6 total)

  • danbpfr
    Participant

    @chouf1

    BP version and theme name please !


    JohnnyJonJon
    Participant

    @johnnyjonjon

    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


    Paul Wong-Gibbs
    Keymaster

    @djpaul

    Can’t help much unless you show us the code. It’s probably in a loop.


    JohnnyJonJon
    Participant

    @johnnyjonjon

    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


    JohnnyJonJon
    Participant

    @johnnyjonjon

    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


    danbpfr
    Participant

    @chouf1

    @johnnyjonjon

    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 ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘bp_get_options_nav repeating?’ is closed to new replies.
Skip to toolbar