Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Aristo,
You need to put the user role inside
query_args, like this:add_action( 'mb_relationships_init', function () { MB_Relationships_API::register( array( 'id' => 'stud_to_teach', 'from' => array( 'object_type' => 'user', 'query_args' => array( 'role__in' => 'student' ), 'meta_box' => array( 'title' => 'Manages', 'field_title' => 'Select Users', ), ), 'to' => array( 'object_type' => 'user', 'query_args' => array( 'role__in' => 'teacher' ), 'meta_box' => array( 'title' => 'Manages users', 'field_title' => 'Select Users', ), ), ) ); } );Anh Tran
KeymasterI'm afraid this has to be done with custom code. Please following the Google docs.
Anh Tran
KeymasterHi, it's possible. The Meta Box settings fields are under Site > Meta Box Fields.
Anh Tran
KeymasterNo problem, let's talk via Skype. My Skype nickname is "rilwis". You can call me anytime between 9AM-5PM GMT+7.
October 31, 2018 at 9:57 PM in reply to: ✅select advanced in Group showing: "Warning : Invalid argument supplied foreach" #11804Anh Tran
KeymasterHi Ale, the bug is fixed in the latest version of MB Builder. Please update.
Thanks for your bug report!
October 31, 2018 at 9:52 PM in reply to: ✅Bug: Checkboxes saved in custom table but shown in UI #11803Anh Tran
KeymasterThanks a lot for your code. I see it doesn't work with checkbox_list field type. Let me fix and update the plugin.
Anh Tran
KeymasterHi Thomas,
Sorry for not reply the topic. I don't know why I missed this. Can you please tell me what field type it is? And please post your code here so I can debug and fix it faster.
Thanks for understanding.
AnhOctober 26, 2018 at 4:45 PM in reply to: ✅Clone As Multiple Feature Doesn't Work With Taxonomy Advanced Field #11776Anh Tran
KeymasterHi, I haven't done fixing it yet :(. Please wait for a few days.
Anh Tran
KeymasterThanks for your feedback. I found the bug and updated the MB Revision extension. Please update it.
Anh Tran
KeymasterHi,
I see some PHP errors in your code. So I rewrote it as follows: https://ghostbin.com/paste/b9er9. Please try it.
October 26, 2018 at 2:53 PM in reply to: ✅select advanced in Group showing: "Warning : Invalid argument supplied foreach" #11772Anh Tran
KeymasterYes, it happens for all choice fields. The problem is the Builder doesn't process sub-fields. We're trying to fix that.
October 26, 2018 at 9:21 AM in reply to: ✅pre_get_posts to get all posts connected to single object #11769Anh Tran
KeymasterOh, I know why. I'm using the development version, which fixes the post type set to
any. I've just updated the plugin on wordpress.org. Please update and try again!Sorry for the confusion.
Anh Tran
KeymasterHi,
- No, you can just use the AIO plugin. Just a note, if you need free extensions, they will be installed independently. AIO includes only premium extensions.
- Yes, it's white-label partly. The main menu is requires for some extensions such as MB Custom Post Type and MB Builder. But if you don't use them, and use only AIO, then you can filter the
mb_aio_show_settingsand it won't show the menu.
Anh Tran
KeymasterHi Todd,
Can you post your solution here? It might help others.
I'm also interested in the problem with groups. Basically, it acts like a normal text field, the data should be saved as a serialized string.
Anh Tran
KeymasterHi Pascal,
I answered you via email. Posting here in case anyone needs it:
I see you're using the old syntax of Meta Box to register meta boxes. I've made the change to this: https://ghostbin.com/paste/d2k7b
Please try it.
Note that the way to register directly via class
RW_Meta_Boxis not supported anymore. While it might work in normal cases, it's not compatible with other extensions. Please see the docs here: https://docs.metabox.io/creating-meta-boxes/Let me know if you see any bug.
-
AuthorPosts