Skip to:
Content
Pages
Categories
Search
Top
Bottom

Xprofile field


  • welshlamb10
    Participant

    @welshlamb10

    Hello,

    I’m using BB. I want to show custom fields on the profile page.
    How can I show the following data on the profile?

    $jobtitle = get_user_meta( $user_id, 'JobTitle', true);

    I prefer to add a custom function, than use an extra plugin

    Thanks

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

  • shanebp
    Moderator

    @shanebp

    $jobtitle = get_user_meta( bp_displayed_user_id(), 'JobTitle', true);


    welshlamb10
    Participant

    @welshlamb10

    @shanebp

    Thanks. Sorry I may not have explained.
    How do I get this to display as a field on the xprofile base section?

    I’m struggling to find the hook the code above I added works. I just don’t understand how to get this to autopopulate a field or display on the profile.

    Hope this makes sense and thanks for the help


    shanebp
    Moderator

    @shanebp

    If you mean as an input, then it would be easier to add a JobTitle xprofile field.
    You could write some code to sync the WP field with a BP field.
    Or there are plugins in the repo that claim to sync those fields.

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