Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterI understand. The problem that made me choose meta box for settings page is keeping the consistency in the code as they share the same API for meta boxes. This is also applied in some famous frameworks such as Genesis or Hybrid Theme.
Anyway, I will think more about using tabs/sections as another option (later). WordPress uses tabs/sections for its settings page, while using meta boxes for edit pages. This inconsistency of WordPress itself makes developers like us harder to make a good decision. Also the API WordPress offers for them are totally different which make things more inconsistent.
Anh Tran
KeymasterCan you post the code?
Anh Tran
KeymasterI see. I will check the updater plugin and the updating system. There might be an issue in the first check.
Anh Tran
KeymasterBtw, custom callback and custom taxonomy was added in the latest version. Please check and tell me if you have any problem ๐
March 10, 2016 at 11:05 PM in reply to: UPDATES to conditional-logic.js to fix 'in' array logic #2453Anh Tran
KeymasterBtw, I've added it to the latest version. Cheers!
Anh Tran
KeymasterI couldn't read the error when updating. Can you tell me which one? Also, it works when you refresh the browser, doesn't it?
Anh Tran
KeymasterHi, I've just added this to Github [issue](https://github.com/rilwis/meta-box/issues/803) to keep tracking the development. We will work on this later. Please be patient.
Anh Tran
KeymasterCan you post the code to register meta boxes? I want to test that.
Thanks
Anh Tran
KeymasterBtw, for User Role, it only change after page load so you can use PHP condition to work with it. For instance:
if ( current_user_can( 'administrator' ) ) { $meta_boxes = []; // Your meta box }Anh Tran
KeymasterOh, thank you, I'm now knowing the problem, it works when either 32 or 35 selected but not works when both 32 and 35 selected. I've updated code and will release within next few day ๐
Anh Tran
KeymasterHi Rik,
I think it's a good feature. However, do you think it will confuse user if they enable it for both default WP editor and WYSIWYG, or 2 WYSIWYG fields?
Anh Tran
KeymasterHi,
Currently, we have an internal caching mechanism, that will get all fields (by ID) and store in a static variable. This caching mechanism allows us to speed up the
rwmb_metafunction. Due to field ID is used as the key in the cache, field ID must be unique.However, as you said, there can be a situation that 2 post type can have a similar meta box where fields can have the same ID. Therefore, the helper function doesn't know which field it should get meta value for.
I have just pushed a fixed for this on Github, please try and let me know if it works for you:
https://github.com/rilwis/meta-box/commit/747375eb1d08176ace49c954de2b8d4a9d1d43d5
Anh Tran
KeymasterDear Mike,
Thanks for your contribution, can you please post your code that you used to register meta boxes? I've tested
instatement and see that it still works. This is my example:add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) { $meta_boxes[] = array( 'id' => 'personal', 'title' => __( 'Personal Information', 'textdomain' ), 'post_types' => array( 'post', 'page', 'product' ), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'dummy_checkbox', 'type' => 'checkbox_list', 'id' => 'dummy_checkbox', 'options' => array('foo', 'bar', 'baz') ), array( 'name' => __( 'Full name', 'textdomain' ), 'desc' => 'Format: First Last', 'id' => 'fname', 'type' => 'text', 'std' => 'Anh Tran', 'class' => 'custom-class', 'visible' => array('dummy_checkbox', 'in', array(1,2)) ), ) ); return $meta_boxes; });Best regards
Tan
Anh Tran
KeymasterHi Sinusite,
Thanks for contacting us. We're in progress to add Callback, Custom Taxonomy and User Role support and release this month.
Please wait a couple days to get the update.
Thank you and best regards,
Tan
March 7, 2016 at 4:15 PM in reply to: โ Wysiwyg editor in clonable groups and nested clonable groups #2423Anh Tran
KeymasterFYI, WYSIWYG field now is cloneable. Please update to v4.8.3 and Group extension to 1.0.6.
For more info, please check this blog post.
-
AuthorPosts