Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to Display All Profile Fields on the Same Page for Editing

  • Avatar of shortoldtree
    shortoldtree
    Participant

    @shortoldtree

    Hey guys, I am looking for a way to display all profile fields on the same page once the user clicks on ‘Edit profile’.

    Currently I have three field groups, which are,

    Base(first name, second name )
    Social networks(facebook, twitter, website)
    About(About Me).

    Currently, once the user clicks on ‘Edit’, he is only presented with the ‘Base’ profile fields, namely ‘First name’ and ‘Second Name’. To edit the other fields, he has to click on ‘Social Networks’ and then ‘About’ tabs.

    To make it easier for the user, I would like to display all these fields on the same page (the page the user lands on once he clicks ‘Edit’).

    Is there any way I can achieve this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of shortoldtree
    shortoldtree
    Participant

    @shortoldtree

    I know I can add all fields to the ‘Base’ group so it all displays on the same page, but then it will also appear on the signup page which will make the signup page look huge.

    Is there anyway to add elements to the ‘Base’ group and not allow it to appear on the sign-up page?

    Avatar of tightflks
    tightflks
    Participant

    @tightflks

    any help with this?

    Avatar of shanebp
    shanebp
    Moderator

    @shanebp

    try this in bp-custom.php.
    You’ll have to get the ids of the fields you want to exclude on the register page

    function register_hide_profile_fields( $retval ) {
         if( bp_is_register_page() )
    	  $retval['exclude_fields'] = '3';  //field ID's separated by comma
    
         return $retval;
    
    }
    add_filter( 'bp_after_has_profile_parse_args', 'register_hide_profile_fields' );
Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.