Skip to:
Content
Pages
Categories
Search
Top
Bottom

Visible profile fields

  • @idoobi

    Participant

    This appears to be a bit of a problem here, as there are others wondering why this is not a core function.
    I am about to launch a forum for a school class. I need forum members to be able to see and recognise both the parent’s names and their child’s (it is not always obvious who sired which sprog).
    I have set up a Child field in the extended profile, but I need that to be immediately available and visible along with the parent’s name, i.e.
    Cuthbert Longstocking | Pippi Longstocking

    Any help out there (before BuddyPress improves itself)?

    The forum page is here: Forum

    And – BuddyPress – is there any way you could maybe get rid of the HTML formatting tags and display the text properly?!

Viewing 4 replies - 1 through 4 (of 4 total)
  • @idoobi

    Participant

    Forgot to mention: using latest BuddyPress, bbPress in Divi theme.

    @shanebp

    Moderator

    You can get a profile field value like so:

    $child = xprofile_get_field_data( 'child', $user_id );
    
    if ( ! empty( $child ) ) 
        echo $child; 

    Getting the $user_id and changing the layout are both questions specific to bbPress and best asked on their forums.

    @idoobi

    Participant

    Thanks for that… but I really am new to this open source forum stuff.
    (Plus dealing with upgrading to W10 and Office over past few days, so brain is a bit fried).
    Um… in which CSS file do I put the code?

    @idoobi

    Participant

    Where do I put this code?

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