This topic has 7 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #91985
     monkeytoldme
    Participant

    Hello,

    On Kleo I have 5 profile field groups, each with a couple fields. I am trying to display the ‘school’ field in the field group: education, how would I do this? Here is the code I am using:

    $field_content = bp_get_member_profile_data( ‘field=field name goes here’ );

     

    #92005
     sharmstr
    Moderator

    What the code is doing is assigning it to a variable, not displaying it. Buddyrpess has a helper function that will auto echo it for you.

    COPY CODE
    
    bp_member_profile_data('field=field name goes here');
    

    If you dont want to echo it right way and then use the code that you have, then echo it when you want…

    COPY CODE
    
    echo $field_content;
    

    For further questions, please refer to the buddypress documentation and ask on their forums.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #92012
     monkeytoldme
    Participant

    Yes….I know that.

    What would I enter for my field name though, is what I am asking. Like for the field= what would I put in there.

    #92017
     sharmstr
    Moderator

    school. That’s your field name, right?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #92024
     monkeytoldme
    Participant

    Yes, but it is in the field group education. So nothing happens if I just enter ‘school’

    #92026
     monkeytoldme
    Participant

    My bad, sorry. It is working

    #92028
     sharmstr
    Moderator

    It doesnt matter what group its located in.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #92029
     sharmstr
    Moderator

    Glad you got it working.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?