Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Website Setup › Pages › Edit Registration Fields
- This topic has 1 reply, 2 voices, and was last updated 6 years, 7 months ago by
Themosaurus.
-
AuthorPosts
-
JonParticipant@jinsley8
- 3 Topics
- 4 Posts
Hi,
Where can I edit the fields on the registration form?
I added a new profile fields group by going to User > Profile Fields. It says the base group is shown at signup. How can I make the new group appear at sign up page as well?
Bonus if there is a way to do multi-step signup.
August 2, 2018 at 17:49 #1535@themosaurus- 1 Topics
- 1675 Posts
Hi Jon,
As you noticed only the “Base” group is shown in the registration process by default and there is unfortunately no option to show other field groups at the moment. However, here is a code snippet that makes it possible to display all field groups in the registration process:
add_filter( 'bp_has_profile', 'gwangi_buddypress_registration_show_all_field_groups', 10, 3 ); function gwangi_buddypress_registration_show_all_field_groups( $has_groups, $profile_template, $args ) { if ( bp_is_register_page() ) { global $profile_template; $args['profile_group_id'] = false; $profile_template = new BP_XProfile_Data_Template( $args ); $has_groups = $profile_template->has_groups(); } return $has_groups; }
If you don’t want to display all field groups you can also exclude some of them. For example let’s say you want to exclude the groups with an ID of 3 and 5, then you just need to add this line:
$args['exclude_groups'] = '3,5';
under this one$args['profile_group_id'] = false;
in the snippet above.As for the multi-step signup, that is a more advanced topic that would require some PHP skills so all I can do is tell you that the starting point would be to make a child theme and override the template located at gwangi/buddypress/members/register.php (instead of the snippet I provided).
Please let me know if that helped you.
Best regards,
August 3, 2018 at 09:39 #1538 -
AuthorPosts
Hi there,
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
Best regards,
The Themosaurus team.
The topic ‘Edit Registration Fields’ is closed to new replies.