Skip to:
Content
Pages
Categories
Search
Top
Bottom

Some profile_data can not be called other do ?

  • Avatar of Shmoo
    Shmoo
    Participant

    @macpresss

    When I try to show some custom profile data in the header of the member profile I noticed that some data doesn’t work and other do.

    This does not work:
    <?php bp_member_profile_data( 'field=gender' ); ?>

    This does work perfectly:
    <?php bp_member_profile_data( 'field=twitter' ); ?>

    I’ve tried everything, capitalized, none caps, but for some reason ‘gender’ just will not show any value. Isn’t there a better way to just call the ID of the field?

    <?php bp_member_profile_data( 'field=7' ); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Are you sure that the gender field value has been set for the member being viewed?

    If it hasn’t been set, nothing will be returned.

    Avatar of Shmoo
    Shmoo
    Participant

    @macpresss

    Yeah, stupid of me, of course, ..thanks Shanebp.

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

You must be logged in to reply to this topic.