Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to display a custom field?

  • @lotte01

    Participant

    Hello!

    I’m quite new with Buddypress. So I’m searching for hours already how I can do the following thing. I hope you guys can help me!

    I made some custom fields beyond ‘Profile Fields’. I would like to display the outcome of this fields on another page (on a order, within LearnPress). I tried so many PHP codes with ID’s, names etc. But none of them works… What am I doing wrong?

    Here I would like to add the custom fields (beyond the user ID)

    What kind of code do I have to place here?

    Here I made one of the custom fields ('Opleiding')

    Would love to hear from you. Thanks in advance 🙂

    Lot

Viewing 2 replies - 26 through 27 (of 27 total)
  • @stilld

    Participant

    Yeah, it does show some actual user data, but this is called a different way. I’m talking like the field that displays the emailadress, which is not a custom field. This one is called in order.php like this: echo 'User email: ' . $user->user_email . '<br />';

    While the custom fields are called like this: do_action ( 'user_a_field' );

    @stilld

    Participant

    Hi!

    Can somebody help me out with this one? I’m really stuck now…

    Hope you all had a nice holiday!

Viewing 2 replies - 26 through 27 (of 27 total)
  • The topic ‘How to display a custom field?’ is closed to new replies.
Skip to toolbar