I copied the setting from (https://support.metabox.io/topic/how-to-assign-roles-to-meta-boxes-using-the-mb/). As I want to only show Admin's the following information in the user section. So I have set the box to include User Roles 'administrator" and saved changes.
I have created three accounts, on the site. One set as admin and the other 2 are just Contributor's.
When I log in as one of the contributors i can see the section i am trying to hide. I know I must be doing something wrong, but I am not sure what it is.
Here is a screen shot.
I've checked and it works. Did you:
- Use the latest Builder version?
- Installed and activated Include/Exclude extension?
I have the following installed.
MB User Meta v1.0.4
Meta Box v4.10.1
Meta Box Builder v2.1.1
Meta Box Columns v1.0.0
Meta Box Include Exclude v1.0.5
Meta Box Updater v1.1.4
Are they all ok?
Yes, all of 'em are Ok, can you please export your meta box and send me via email [email protected]? It's weird because I've tested one more time and it still works.
I have just send you the file.
Thank you for taking the time to look into this problem.
Sorry because I don't noticed that you use Include/Exclude with User Meta, currently it doesn't support User Meta. We'll improve it soon.
Thank you for the update. That you will try and fix it. Will it take long to have that function added?
I've just updated the Include Exclude extension. It works with the MB User Meta extension now.
You guys are amazing. Where can i download the update? As need to move it to the other test site.
Just go to your "My Account" page (click on your avatar) and download the "Meta Box Include Exclude" extension.
Also, read this guide to know about automatic update.
Thank you again and I will sort out the automatic updates.
Two questions will the Include Exclude extension also work for the ID's or just groups?
This question is about MB Admin Columns, can I also create columns in the users admin screens or just all posts, pages or custom post type?
Thank you again
This is the list of supported conditions for Include Exclude extension. But if you use it for user profile (with User Meta extension), then you can use only "user_role" and "user_id".
If you want to show/hide fields for a certain ID/groups, you should use the Conditional Logic extension.
See this for the difference between Include/Exclude and Conditional Logic.
Regarding the 2nd question about MB Admin Columns: currently it works only for posts, pages and custom post types.
Thank you for explaining and I understand.
Again Thank you