Skip to:
Content
Pages
Categories
Search
Top
Bottom

Some profile_data can not be called other do ?


  • 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)

  • shanebp
    Moderator

    @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.


    Shmoo
    Participant

    @macpresss

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Some profile_data can not be called other do ?’ is closed to new replies.
Skip to toolbar