Support Forum
Support › Meta Box Builder › Include Exclude not working in Meta Box Builder
Dear Support,
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.
Thank you
Dave
I've checked and it works. Did you:
- Use the latest Builder version?
- Installed and activated Include/Exclude extension?
Best regards,
Tan
Hi Tan,
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
and
Meta Box Updater v1.1.4
Are they all ok?
Dave
Dear Dave,
Yes, all of 'em are Ok, can you please export your meta box and send me via email tan@fitwp.com? It's weird because I've tested one more time and it still works.
Dear Tan,
I have just send you the file.
Thank you for taking the time to look into this problem.
Dave.
Dear Dave,
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.
Cheers!
Dear Tan,
Thank you for the update. That you will try and fix it. Will it take long to have that function added?
Cheers
Dave.
Hi Dave,
I've just updated the Include Exclude extension. It works with the MB User Meta extension now.
Dear Anh,
You guys are amazing. Where can i download the update? As need to move it to the other test site.
Dave
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.
Dear Anh,
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
Dave
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.
Dear Anh,
Thank you for explaining and I understand.
Again Thank you
Dave.