BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 6
    Roman on #51120

    Thank you. It works now.

  • Participant
    Level: Initiated
    Posts: 6
    Roman on #51112

    I have two fields, Male and Female. When I insert the code into bp-custom.php , only the message appears, loading members of your community. Please wait.

  • Participant
    Level: Initiated
    Posts: 6
    Roman on #51107

    I’m making my first website. This code works with Buddyboss, but I don’t like this plugin, it’s slow. With Buddyboss, only the Buddux template works normally. And Buddypress is fast, any template is suitable.

  • Participant
    Level: Initiated
    Posts: 6
    Roman on #51093
  • Participant
    Level: Initiated
    Posts: 6
    Roman on #51090

    I did this ‘$opposite_gender = $this->get_opposite_gender( bp_loggedin_user_id() );
    if ( $opposite_gender ) {
    $query->query_vars[‘xprofile_query’] = array(
    array(
    ‘field’ => 47,
    ‘value’ => $opposite_gender,
    ‘compare’ => ‘=’,
    ),
    );
    }
    }’
    Does not display anyone.

  • Participant
    Level: Initiated
    Posts: 6
    Roman on #51087

    I have a Gender dropdown field, field_id=47. I replaced ‘his_Male’ and ‘her_Female’ with Male and Female. How to correctly change ‘field’ => bp_get_xprofile_gender_type_field_id(), // field id or name, to field_id=47?