User profile location
Support › MB User Profile › User profile locationResolved
- This topic has 3 replies, 2 voices, and was last updated 3 years, 2 months ago by
Yasmine.
-
AuthorPosts
-
October 4, 2022 at 4:48 PM #38528
Yasmine
ParticipantHey there,
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?
October 4, 2022 at 10:07 PM #38534Long Nguyen
ModeratorHi Yasmine,
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.
October 4, 2022 at 11:30 PM #38538Yasmine
ParticipantHi Long,
Just tried it out with the
user_roleand theedited_user_role, but it didn't quite do as I need.As an administrator, I could see the custom field on my
customeruser, but also on theselleruser. 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!
Many thanks,
YasmineOctober 4, 2022 at 11:39 PM #38539Yasmine
ParticipantIgnore me - all fixed. It was just about using the "edited_user_role" and ignoring anything to do with administrator. Thank you
-
AuthorPosts
- You must be logged in to reply to this topic.