I have listings categorized as ‘Lounges’ with a listing attribute called ‘Membership’.
This ‘Membership’ attribute is a select field that draws its options from the ‘hp_listing_memberships’ taxonomy.
I also have user profiles with user attributes.
Is it possible to include the same ‘Membership’ field, using the same ‘hp_listing_memberships’ taxonomy, in the user attributes?
If so, how can I establish the connection between the listing ‘Membership’ attribute and the user profile ‘Membership’ attribute?
When an authorized user enters the single “Lounge” listing, it is necessary to check the user’s “Membership” data and compare it with the data assigned to the “Lounge”.
If you mean regular users, unfortunately there’s no such option, because users in WordPress don’t have taxonomies, only “post-like” entries do (like listings and vendor profiles, these are “hp_listing” and “hp_vendor” post types). As a workaround, you can try to use a simple select field for users that will save the selected value as a user meta field, but in this case a list of available options should be provided in the code. You can populate this plain list based on another taxonomy, but this requires further customizations.