Support › MB User Profile › User profile locationResolved
I am trying to attach certain user custom options to different types of user, but not limited to who can see.
In the custom field section, I can save the fields location to a certain user. I can choose "user" or "user role" but both do the same.
However, when I use either, they only protect the fields visibility from different user types rather than just being associated with different users.
For example, if I have a user type called student, and I want some specific fields (eg grades) to just be seen on their backend profile because it is not relevant to the others, then if I save the location of grades fields to a student user, then the administrator cannot see this (unless of course you add the administrator too, but then they can see it on everyones profile). Instead of it being about visibility and hiding fields based on field type, I want it to be about simplicity - so not seeing additional user fields attached to profiles where they are not needed.
Not sure if I am making sense. But if I am, do you know how to do this?
Please follow this topic https://support.metabox.io/topic/custom-user-fields-not-showing-in-wordpress-back-end/#post-35455
to know how to set custom fields available for a user role and allow the admin to edit those fields as well.
Let me know how it goes.
Just tried it out with the
user_role and the
edited_user_role, but it didn't quite do as I need.
As an administrator, I could see the custom field on my
customer user, but also on the
seller user. I only want them to be seen by the administrator on the relevant user (so on customer, I just seen their fields and on seller I see the ones unique to them). This is only to make it easier to know which are available to them and should be edited. It's not an urgent task, means when I go in to make edits, I only see the custom fields that are relevant to them.
Hope I clarified!
Ignore me - all fixed. It was just about using the "edited_user_role" and ignoring anything to do with administrator. Thank you