BuddyDev

Search

Member Type not saving on Register Page

  • Participant
    Level: Initiated
    Posts: 1
    Marie Kennedy on #15088

    I am using your BP Member Type on my register page.
    The new user can select a member type e.g. ‘EV Enthusiast’ or ‘Potential EV Buyer’.
    My problem is, it doesn’t save.
    It default to ‘EV Owner’ for every new sign up, no matter what they actually select. I am relatively new to WordPress and am not a PHP developer so am struggling to debug to find what the problem is?
    Here is a link to my register page in my staging area:
    https://staging1.electriccarexperts.com/register/
    I would really appreciate any pointers to my problem?
    If you want to login to see the BP Member Type set-up please email me.
    Thank you

  • Keymaster
    (BuddyDev Team)
    Posts: 24715
    Brajesh Singh on #15093

    Hi Marie ,

    Are you using any other plugin/code that works/modifies the registration process or the member types?

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 1
    Marie Kennedy on #15122

    Hi Bajesh
    Thanks for your reply.
    I don’t think I have anything else that should effect it. My theme has BuddyPress incorporated (Re:hub theme) and I’ve made very little changes to the code. These are the related plugins I have. I can give you access to the site if you want to take a look?
    bbPress
    BuddyPress
    BuddyPress Follow
    BuddyPress Xprofile Member Type Field
    RH BuddyPress Member Types

  • Participant
    Level: Initiated
    Posts: 2
    Martin on #24254

    Hi Brajesh,

    How can I change default value from —– (no member type) to ‘Student’? I want users to have member type field prefilled with Student with ability for Teachers to select ‘Teacher’ at the registration.

    Thank you,

    Martin

  • Keymaster
    (BuddyDev Team)
    Posts: 24715
    Brajesh Singh on #24265

    Hi Martin,
    Please upgrade to 1.0.8 and you can use code like following

    
    add_filter( 'bp_xprofile_member_type_field_default_type', function( $type ) {
    	return 'student'; // change with your member type slug.
    });
    

    yo select default member type.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved