Hi there, the problem in particular is that if you are using a default Ajax WP registration with name, email, and password, combined with ‘BP Non Editable Profile Fields’ and ‘BuddyPress Profile Completion’ to get users to fill out the required BP fields after registration, users are not warned or aware of that a wrong value for their gender has been set.
Hi there, I think I can see what is wrong here.
I have created two similar Single Member Types fields
1. field: Own gender
2. field: looking for gender
But of course I can’t have two similar fields with different functions.
So when users register they are assigned field 2 with their gender, which should have been field 1. (I assume field 2 then overwrites field 1).
1. How do I solve this gender issue, where I can define both own gender and having a field for which gender users are looking for – also with an option for choosing own gender?
I have been using this code snippet so far, but this does not take in account members searching own gender:
Show only users of opposite genders on BuddyPress site
2. Do I need this code using MTP, or does Pro have a build in solution to this problem like showing different directories to different Member Types?
On the plugin page under ‘Where should I use BuddyPress member types?’
Dating sites(male/female member type)are mentioned.
So I guess there must a straight forward answer to this, I just can’t figure it out.
Can you help?
Thank you for sharing the details. But, I am unable to check your bp-custom file code here. Provide me the access so that I can modify and check.
Also, It seems you have inconsistent member types assign to members i.e. Mam assigned to female and vice-versa. Please check
Hi Carsten, Ravi
The issue is related to the use of 2 member type fields. Please do not use 2 member type fields. Member type fields change the actual member type of the User and if you have 2 fields, it is unpredictable which member type will be set for the user. If you need to assign multiple member type to a user(I see that is not your case), you can use multi member type field insteda.
In your current case, the best solution is to use the “looking for” as a normal “select” options and use a few lines of custom code to achieve the goal.
You must be logged in to reply to this topic.