Hi @elliot. I created new user role Service Provider and insert custom field on user with rule of USER ROLE is equal to Service Provider.
The problem is when I login with a admin account I see the fields on user but when Im login with Service Provider I can’t see those fields I insert.
Am I losing something with the rule? I tried also CURRENT USER ROLE is equal to Service Provider but I can’t still see those fields.
Thank you.
It should be CURRENT USER ROLE
Does the user role ID/Name include the space between Service
and Provider
?
Thank you for the respond @JohnHueber,
I use CURRENT USER ROLE is equal to Service Provider and still not working.
and yes I use space between Service-space-Provider
I use the plugin “User Role Editor” to add new role.
I thought it might be that you had a space where it wasn’t allowed, but if you are using User Role Editor then it prevents this.
My next suggestion is going to be to deactivate any other plugins and/or switch to the default theme.
With only ACF and User Role Editor active on my test site I’m not seeing the issue that you’re seeing.
Sorry for long reply.
I finally solved my problem by changing dash(-) to underscore(_)
The one I made using role editor plugin is this
Role name (ID): service-provider
Display Role Name: Service Provider
the problem is that acf seems don’t accept dash so I change that in to this
Role name (ID): service_provider
Display Role Name: Service Provider
And now it fixed my problem.
Hope this help others. Thank you 🙂