Forum Replies Created
-
AuthorPosts
-
August 18, 2016 at 8:49 AM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3878
Anh Tran
KeymasterI'm still checking :(. I will try to fix it asap.
Anh Tran
KeymasterHi Mark,
That line is added to the field parameters when you use code to define meta boxes. Please follow this documentation to know how to do that. And in the array of field parameters, simply add
'add_to_wpseo_analysis' => true.PS: I see you purchased MB Builder extension. If you want to add the field to the Yoast SEO analysis, in the field configuration panel, click the Show Advanced link, then click Add Custom Attribute button, and enter the param to the inputs like in this screenshot.
Anh Tran
KeymasterI think it's better to use
get_queried_object_id()๐Anh Tran
KeymasterHi Andi,
I've just checked that line and it's the sanitization value for group to remove empty values. Do you see the bug when creating a new post?
Anh Tran
KeymasterThanks for reporting. I will tell my developer to fix this.
Anh Tran
KeymasterHi,
This is term meta and you should use
get_term_metainstead ofget_post_meta:echo get_post_meta($term_id, 'dark_overlay', true);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
Anh -
AuthorPosts