conflict with Bp Profile search
-
Hello there,
Your plugin is really great and allows a very nice flexibility in managing the profile tabs!
I however found a conflict when using it with BP profile search.
I have 2 member types on my site and some profile groups are only meant for one of the type, so I’ve hidden them from the other type thanks to your plugin.
Unfortunately, when creating a search form with BP Profile search, the profile fields from the groups that have been hidden don’t appear.So my question is, would there be an easy way to make it compatible with BP profile search?
And if not, would you advise a way for me to hide the profile groups manually with PHP?
The few codes I’ve tried haven’t worked, like the one below:function kida_custom_profiles( $retval ) { if ( is_user_logged_in() && !bp_is_active( 'xprofile' ) ) { $membertype = xprofile_get_field_data( 'Type' ); if( $membertype == "Recruiter" ) { $retval['exclude_groups'] = '7,8,9'; } } return $retval; } add_filter( 'bp_after_has_profile_parse_args', 'kida_custom_profiles' );
Thanks in advance
- The topic ‘conflict with Bp Profile search’ is closed to new replies.