Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_get_options_nav repeating?

  • Avatar of JohnnyJonJon
    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)
  • Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    BP version and theme name please !

    Avatar of JohnnyJonJon
    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

    Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

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

    Avatar of JohnnyJonJon
    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

    Avatar of JohnnyJonJon
    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

    Avatar of danbpfr
    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)

You must be logged in to reply to this topic.