wp-user-manager
wp-user-manager copied to clipboard
Fix: Display Taxonomy Field data in user profiles
Resolves https://github.com/WPUserManager/wp-user-manager/issues/396
Description
The issue is \WPUM\carbon_get_user_meta returns empty for taxonomy field.
Testing Instructions
- Create a custom taxonomy and a taxonomy field by following the guide at https://wpusermanager.com/article/268-taxonomy-field/.
- Choose the checkbox field type.
- During user registration, ensure that the custom taxonomy is selected.
- Observe that the data does not appear in the user's profile.
Pre-review Checklist
- [ ] Issue and pull request titles are properly formatted.
- [ ] Acceptance criteria have been satisfied and marked in the related issue.
- [ ] Unit tests are included (if applicable).
- [ ] Self-review of code changes has been completed.
- [ ] Self-review of UX changes has been completed.
- [ ] Review has been requested from @polevaultweb.
@reygcalantaol I couldn't recreate this issue - is it not appearing in the wp-admin user profile?
@polevaultweb @wp-user-manager The issue is that the taxonomy terms selected during registration does not display in the user's profile page.
To reproduce:
- Create a user taxonomy (e.g. Profession) and add sample profession terms in the backend. See https://justintadlock.com/archives/2011/10/20/custom-user-taxonomies-in-wordpress
- Add taxonomy field as checkbox into registration form. See https://wpusermanager.com/article/268-taxonomy-field/
- Register new user and view the new user profile page.
@reygcalantaol very strange, still can't recreate -
Settings
After Registration - Profile
After Registration - Account edit
After Registration - WP Admin profile
@polevaultweb
The issue is to add the user taxonomy values in the primary fields section: