wp-user-manager icon indicating copy to clipboard operation
wp-user-manager copied to clipboard

Fix: Display Taxonomy Field data in user profiles

Open reygcalantaol opened this issue 1 year ago • 4 comments

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

  1. Create a custom taxonomy and a taxonomy field by following the guide at https://wpusermanager.com/article/268-taxonomy-field/.
  2. Choose the checkbox field type.
  3. During user registration, ensure that the custom taxonomy is selected.
  4. 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 avatar Nov 25 '23 22:11 reygcalantaol

@reygcalantaol I couldn't recreate this issue - is it not appearing in the wp-admin user profile?

wp-user-manager avatar Feb 01 '24 09:02 wp-user-manager

@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 avatar Feb 10 '24 17:02 reygcalantaol

@reygcalantaol very strange, still can't recreate -

Settings

image

After Registration - Profile image

After Registration - Account edit image

After Registration - WP Admin profile image

wp-user-manager avatar Feb 10 '24 17:02 wp-user-manager

@polevaultweb The issue is to add the user taxonomy values in the primary fields section: image

reygcalantaol avatar Mar 31 '24 11:03 reygcalantaol