Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi,
Regarding the meta boxes aside, it's already supported by MB Blocks. All you need to do is set the
'context' => 'side'for the block. Here is the docs for that:https://docs.metabox.io/extensions/mb-blocks/#context
If you use MB Builder to create blocks, there's an option to set it as well:
Anh Tran
KeymasterHow did you create the gallery? Did you use group for that?
In this case, I think all you need is just using the
image_advancedfield.December 6, 2019 at 4:07 PM in reply to: ✅Set a minimum date in a date field in dependence of another date field #17417Anh Tran
KeymasterHi Daniel,
I tried to format the “to” date in dependence of the from date field. Therefore I used the “minDate” option from the date picker options and hoped that I could get and set the date from the “from” field as a new date in the value field.
I think this can be done only with custom JavaScript.
Here are some steps that I'm thinking:
First, add the following code to
functions.phpfile, this code enqueues a custom JS file:add_action( 'rwmb_enqueue_scripts', function() { wp_enqueue_script( 'custom-code', get_template_directory_uri() . '/custom.js', ['jquery'], '', true ); } );Second, create a file
custom.jsand put it in your theme. And put the following code in that file:$from = $( '#from' ); $to = $( '#to' ); $from.on( 'change', function() { $to.datepicker( "option", "minDate", $from.val() ); } );Here I assume your fields has ID
fromandto. You might want to change it to something else if you have different IDs.December 6, 2019 at 3:53 PM in reply to: Cannot get rwmb_get_object_fields to work for setting object #17416Anh Tran
KeymasterHi,
Thanks a lot for your feedback! There was a bug with that function for settings page. I've just fixed it. Now you can use this code:
$fields = rwmb_get_object_fields( 'settings-page-id', 'setting' );Just note that the 1st item should be settings page ID, not option name.
December 6, 2019 at 3:35 PM in reply to: ✅Group data in custom table not printed via shortcode #17415Anh Tran
KeymasterHi Neal,
Please see this video: https://www.loom.com/share/600b5473ebc343fdaaf440717af7088a
I made a demo based on your code and it works.
December 6, 2019 at 3:23 PM in reply to: Fatal Error after update: cannot redeclare mbb_parse_meta_box_settings() #17414Anh Tran
KeymasterHi, did you activate both AIO and MB Builder? If so, please remove the individual MB Builder. AIO already includes it and you just need to activate it in Meta Box > Extensions.
Anh Tran
KeymasterHi Will,
Thanks for your help. It's added to the new version which has just been released.
Anh Tran
KeymasterGood idea. I think another option like "force_delete" will work on this. I'll implement it in the next version.
December 6, 2019 at 3:08 PM in reply to: ✅Conditional Logic broken by new Frontend Submission release #17409Anh Tran
KeymasterHi Terran,
Can you send me the code of the meta box that has problem with the conditional logic? The latest update of MB Frontend Submission doesn't have anything to do with the output of fields. It's quite strange that it breaks conditional logic.
December 6, 2019 at 3:06 PM in reply to: ✅Despite purchasing a lifetime bundle, it warns "Your license key is invalid" #17408Anh Tran
KeymasterProbably that's right. If there is no plugins in My Account page, the update system will think that's an invalid license key. Have you purchased any premium plugin? What was your email when you bought it?
Anh Tran
KeymasterHi Huy,
Probably this is the sanitization problem. Please see this blog post for details:
Anh Tran
KeymasterHi,
Are you using Gutenberg for the post type? Gutenberg doesn't support the "side" position, so I just hide it from the settings.
December 4, 2019 at 4:39 PM in reply to: Fatal error: Allowed memory size of # bytes exhausted #17352Anh Tran
KeymasterJust sent an email. Please check your inbox.
December 4, 2019 at 4:26 PM in reply to: ✅Despite purchasing a lifetime bundle, it warns "Your license key is invalid" #17351Anh Tran
KeymasterHi, please check if you are using the Meta Box Updater extension. If yes, please remove it and try again.
Anh Tran
KeymasterHey guys, I've just fixed this bug. The new version is coming.
-
AuthorPosts