Skip to:
Content
Pages
Categories
Search
Top
Bottom

my_custom_ids working and not working


  • webmister76
    Participant

    @webmister76

    Hi guys 🙂
    My users have many custom fields in their profile.
    I’m trying to create a member page, with different loops, because I need to split them in different groups with different criteria.

    I’m using the my_custom_ids function, but I’m getting crazy…

    <?php if ( bp_has_members( my_custom_ids( 'Nome', 'testB' ) ) ) : ?>
    is working. The loop displays only one user, named “testB”

    <?php if ( bp_has_members( my_custom_ids( 'Nickname', 'web9' ) ) ) : ?>
    is working. The loop displays only one user, with the nickname “web9”

    <?php if ( bp_has_members( my_custom_ids( ‘Role’, ‘iscritto’ ) ) ) : ?>
    is NOT working. Also Administrators are displayed.
    This is not the only problem. It happens also with other fields, but I can’t understand why…

Viewing 1 replies (of 1 total)

  • webmister76
    Participant

    @webmister76

    I’m trying also with `<?php if ( bp_has_members( array(
    ‘Torneo’ => ‘F.le’,
    ‘Sesso’ => ‘Donna’
    ) ) ) : ?>`

    I expect to get users with “F.le” and “Donna” values in the fields “Torneo” and “Sesso”, but actually I’m getting all the users :S

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar