Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi,
This is term meta and you should use
get_term_metainstead ofget_post_meta:echo get_post_meta($term_id->ID, 'dark_overlay', true);Anh Tran
KeymasterI've just checked the select2 documentation and see the problem. The
templateSelectionmust be a JavaScript function. But when we set up in the PHP, we can only send a string and the JavaScript understand that as a string (even the function name, but it is just a string) and the template function could not be called.Currently, I haven't got a solution for this yet :(.
Anh Tran
KeymasterThanks. Let me check the Conditional Logic extension with my developer.
August 16, 2016 at 9:58 AM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3855Anh Tran
KeymasterThanks for reporting. Let me check with @funkedgeek on Github.
Anh Tran
KeymasterHi,
I'm having a technical problem with getting/formatting term meta value. After this, the Admin Columns extension will work with the Term Meta extension. I'll try my best to make it available asap.
Thanks
AnhAnh Tran
KeymasterHi Lucas,
Currently, the logic of the clone is keeping the 1st entries for users to enter data. It's applied not only to groups, but also all fields.
Regarding the conditional check, have you updated both the group and conditional logic plugins to the latest version? We've just fixed a bug to make them work together.
Thanks
AnhAnh Tran
KeymasterStrange, this is the code I use to test and it works:
add_filter( 'rwmb_meta_boxes', 'your_prefix_select_demo' ); function your_prefix_select_demo( $meta_boxes ) { $meta_boxes[] = array( 'title' => __( 'Select Field Demo', 'your-prefix' ), 'fields' => array( array( 'name' => __( 'Select Advanced', 'your-prefix' ), 'id' => 'select_advanced', 'type' => 'select_advanced', 'options' => array( 'value1' => __( 'Label1', 'your-prefix' ), 'value2' => __( 'Label2', 'your-prefix' ), ), 'js_options' => [ 'placeholder' => 'Select whatever you want', 'allowClear' => false, ], ), ), ); return $meta_boxes; }The
placeholderandallowClearjust work as expected.Please try again.
Anh Tran
KeymasterHi Matt,
The map in the back end always have ROADMAP view. The
js_optionsis used for the front end only.Anh Tran
KeymasterPlease re-download the Group extension. The latest version is now 1.1.4.
Thanks
AnhAnh Tran
KeymasterHi,
I tested your code and saw the bug. It relates with the unique ID attribute for the editors which is a technical challenge at the moment. I will keep trying and release a fix as soon as I find a solution.
Thanks
Anh Tran
KeymasterI haven't tried the templating option for select2, but ideally, you can pass any params to the
js_options. So just try it ๐Anh Tran
KeymasterThanks for reporting. Yoast's JavaScript code is always the trouble :(. The updated version 3.0 broke MB's JS once. I will check this and get back to you.
Anh Tran
KeymasterCan you post your code to test?
Thanks
AnhAnh Tran
KeymasterUnfortunately, it's not possible for now. That probably is a new UI tool for building tabs ๐
Anh Tran
KeymasterIt's a JS bug and I have a little difficulty with it. I will let you know when it's fixed.
-
AuthorPosts