first_name & last_name automatically altered
-
Is it possible that a piece of Buddypress code is altering my users’ first_name and last_name fields?
This change happens seemingly at random, without us asking for it to happen and it does two things:
- The first_name & last_name values change from uppercase to title case.
- Any first_name values more than one word long (in other words ones that contain a space) get shortened to the first word and the remaining words get prepended to the last_name value.
I’ve asked in a wordpress forum thread in case it’s a core thing, but people think it may be buddypress related.
Thanks in advance!
-
@mugwumpman,
first and last_name fields don’t belong to BuddyPress, but to WP profiles.BP use only a field called Name at first install. User can enter their first AND last name in that field. Is this what you’re talking about ?
After reading your topic on wp.org, it seems that you use those fields to enter datas which are not first and last names, but more for company and company activity or such.
As you use BP, i would suggest you use the power of xprofile and offer to your user a much better experience by adding a field for a company and another for company activity (or something like that). So you can forget WP’s profile fields and use BP’s xprofile fields.
WP’s profile field used when BP is activated are: username, email and password.
And BP adds his mandatory Name field, which can be first, lastname, username or whatever other unique name belonging to a subscriber (which can be a human, a pet, a company….).And yo can as many fields you want to the registery or for later on profiles.
The other problem related to font case is a mistery so far. Can be related to many things such as plugins or theme or custom function. This can be determined by debuging and using one of WP’s default theme and all plugins deactivated.
No matter to know if you fill a wp or a bp field for this. Both use a textarea, so it’s probably more a css thing somewhere.
BuddyPress will try to sync the value of a user’s “Name” field to the First and Last Name fields in their wp-admin user profile.
To disable this, go to wp-admin Settings > BuddyPress, and disable Profile Syncing.
- You must be logged in to reply to this topic.