Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi Octavian,
The plugin LearnPress can work with the latest version of Meta Box, but not Meta Box AIO. The LearnPress's developer team uses Meta Box as a library but not update the Meta Box version in the plugin's source. You can see the old version of Meta Box in the file:
wp-content/plugins/learnpress/inc/libraries/meta-box/meta-box.php -- Version: 4.15.7I will try to contact LearnPress's developer team to update the Meta Box version on their plugin.
Long Nguyen
ModeratorHi,
I will check it out and let you know later.
Thank you.
Long Nguyen
ModeratorHi,
The field
backgroundhas not supported the settingpaletteslike the fieldcoloryet. I'm going to create a feature request for the developer team to support this.Thank you.
Long Nguyen
ModeratorHi,
I've tried to reproduce the issue on my local site but not see that. Screen record https://share.getcloudapp.com/NQuKKy8m.
Please deactivate all plugins except Meta Box, Meta Box extensions, switch to the default theme of WordPress Twenty Twenty then create a new CPT again.
If you've updated the plugin MB Custom Post Type from v1.9.x to v2.0.x or Meta Box AIO from v1.11.19 to v1.12.0, please follow this note to force migrate the CPT https://docs.metabox.io/extensions/mb-custom-post-type/#force-migrate.
Let me know how it goes.
Long Nguyen
ModeratorHi David,
You can use the Dot notation to define an array in the Builder. See my screenshot https://share.getcloudapp.com/eDuwwOG0.
Or use the JSON notation (array)
["#459", "#78b", "#ccc"]. See https://share.getcloudapp.com/Wnullgw8.Long Nguyen
ModeratorHi,
You can format the number input with a few lines of JavaScript code:
jQuery(document).ready(function($) { $('body').on('keyup', '#field_ID', function() { var n = parseInt($(this).val().replace(/\D/g,''),10); $(this).val(n.toLocaleString("en-US")); }) });Refer to this topic from StackOverFlow https://stackoverflow.com/questions/149055/how-to-format-numbers-as-currency-string
Long Nguyen
ModeratorHi,
The variable
$mylistin the functionprefix_register_meta_boxes()refers to a local version of the$mylistvariable, and it has not been assigned a value within this scope so it will not render the list options.You can move the variable
$myArrayand$mylistinto the functionprefix_register_meta_boxes()to make it works.add_filter( 'rwmb_meta_boxes', 'prefix_register_meta_boxes' ); function prefix_register_meta_boxes( $meta_boxes ) { $myArray = array('first', 'second', 'third'); if ($myArray) { $mylist = array_combine($myArray, array_values($myArray)); } else { $mylist = null; } $meta_boxes[] = array( 'title' => 'Personal Information', 'post_types' => 'post', 'id' => 'myform', 'fields' => array( array( 'name' => 'List', 'id' => 'MyList', 'type' => 'checkbox_list', 'options' => $mylist, ), ) ); return $meta_boxes; }Or use the
globalkeyword. Get more details in the documentation https://www.php.net/manual/en/language.variables.scope.php.Long Nguyen
ModeratorHi,
The
postfield also supports to show posts base on thetaxonomyfield's value by using the setting query_args and taxonomy parameters. But it will show posts by taxonomy on saving and reload the page that means, after the fieldtaxonomysaves the value, not get the value on "live".As your expectation, I'm going to create a feature request for the developer team to show posts after "live" get another field's value.
Thank you.
Long Nguyen
ModeratorHi,
I'm going to check it out and let you know if there is any information.
Thank you.
Long Nguyen
ModeratorHi,
The sanitize callback function only works with normal custom fields, not in a block for now. I'm going to create a feature request for the developer team to support this case.
Thank you.
Long Nguyen
ModeratorHi,
The second argument of the helper function rwmb_meta() must be in one object like:
{% set taxmap = mb.rwmb_meta( 'osm_veranstaltungsort' , {object_type: 'term', width: '600px'}, term_id )%}December 8, 2020 at 10:38 PM in reply to: ✅Error at create fields group after update (Meta Box AIO v1.12.0) #23476Long Nguyen
ModeratorHi,
Maybe there is some jQuery code of a plugin/theme that is deprecated and WordPress 5.5.x removes the jQuery Migrate Helper cause the issue.
Please try to deactivate all plugins except Meta Box, Meta Box AIO, and switch to the default theme of WordPress to check the issue again. Let me know if the field groups in the Builder does not work.
December 8, 2020 at 9:44 PM in reply to: ✅Suggestion for fields — Automatically adding a TITLE ATRIBUTE based on MB ID #23474Long Nguyen
ModeratorHi,
Thanks for your effort.
The attribute title for each field helps users to show the short description when hovering the element. We also have the extension MB Tooltip to show the description as well.
But I will discuss with the developer team to take a look at this case and support in the future update if needed.
December 8, 2020 at 9:32 PM in reply to: ✅Lost Pasword 404 (page not found) ?lost-password=true #23473Long Nguyen
ModeratorHi,
Please share the credentials (Admin site and FTP account) via this form https://metabox.io/contact/. I will check it out.
Long Nguyen
ModeratorHi Akram,
Please try to deactivate all plugins except Meta Box, Meta Box AIO, and switch to the default theme of WordPress (Twenty Twenty) then check the issue again.
If it still does not work, please share the code that created the custom fields and CPT. I will test the code on my end. You can share the code via https://pastebin.com/.
-
AuthorPosts