If you were using the WordPress registration page before while running BuddyPress, then it was actually a bug in BuddyPress!
However, if you really need to use the WP registration page, add this code snippet to /wp-content/plugins/bp-custom.php:
`remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ );`
This snippet disables the redirect from WP’s registration to BP’s registration page. It’s not really recommended to this, so I note this as a disclaimer now!
You’ll also want to probably remove the “Registration” page from the BuddyPress admin settings area so that page cannot be used for registering.
Ray,
Thanks for the help. I created the custom file like the directions said to and placed the code in like this:
`<?php
// hacks and mods will go here
remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ );
?>
`
However, registration page still does the redirect. Any other suggestions? It is in the wp-content/plugins/ directory.
Any ideas anyone? The remove action code did not work. Maybe it’s set up wrong?
I think a better bet is to collect that info on the BP registration page and then not display it on the user profile (that way you’ll still be able to use it in other ways). With BP 1.6. you can change the visibility of each xprofile field to friends only, logged-in users, or public (and force that level or allow the user to override your selection). (Visible to admin only is coming in BP 1.7, btw, which would totally fix you up.) At the moment, you can modify your theme template file (themes/yourtheme/members/single/profile/profile-loop.php) to hide some fields like this:
`about line 17:
<?php $no_display_fields = array( // Enter the field name of any field that you don't want to appear on the user profile.
‘E-mail’,
‘Name of Field Hide’,
‘Another’
);
if ( bp_field_has_data() && !in_array( bp_get_the_profile_field_name(), $no_display_fields ) ) : ?>`
It’s a hack, but it works for me (until BP 1.7).
This will work I think for the time being. I need to test a couple other things to work with my other plugins.
Something you should know, the code you gave me works. But I’m not sure it’s talking to the field names, because it doesn’t publicly display any fields now. Even ones that I have not named in the code, like names and the show people work on in my media center. Not a big deal for me, but might be a big deal for someone else. Maybe this will be fixed in the code in 1.7.
Thanks.
@snowlas – Sorry! I didn’t test that snippet.
I just tested this and it will work:
`
/**
* Removes BP’s redirect from the regular WP registration page.
*/
function my_remove_bp_register_redirect() {
remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ );
}
add_action( ‘bp_loaded’, ‘my_remove_bp_register_redirect’ );
`
Snippet belongs in `/wp-content/plugins/bp-custom.php`.