Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Nick,
Thanks for your reply. I'll take a note on this. Currently, the plugin doesn't copy values to the translations. It only add connections between items if they're chosen.
I think you can hook to the plugin to add your own connections between connected items. I'll add more hooks to let you do that. What do you think?
Anh Tran
KeymasterHi Dave, thanks for your feedback. I've just fixed the typo and updated the code in the docs regarding the empty case.
January 25, 2020 at 7:28 PM in reply to: ✅Changing ID from INT(11) to BIGINT(20) as per WordPress schema #18008Anh Tran
KeymasterHi Nick, thanks for your feedback. It's a good thing to change and will be available in the next version of the plugin.
Anh Tran
KeymasterHi Pieter, please see my reply above and the documentation.
Anh Tran
KeymasterHi Kiran,
The
postfield loads posts via Ajax, and each call loads 10 posts by default. If you want to load all posts (so the Select All/None button work with all of them), please change the code to:array( 'id' => $prefix . 'name', 'name' => esc_html__( 'All Names', 'text-domain' ), 'type' => 'post', 'multiple' => true, 'post_type' => array( 'names' ), 'select_all_none' => true, 'field_type' => 'select', 'query_args' => ['posts_per_page' => -1'], 'ajax' => false, ),Anh Tran
KeymasterHi, can you try removing all custom code, and change the registration code to something like this:
MB_Relationships_API::register( array( 'id' => 'good_companions', 'reciprocal' => true, 'from' => array( 'object_type' => 'post', 'post_type' => 'plant', 'admin_column' => "after title", 'meta_box' => array( 'title' => esc_html__( 'Good Companions', 'gtt-text' ), ), ), 'to' => 'plant', ) );Anh Tran
KeymasterHi Austin,
You're right. The way we built the
sanitize_callbackis for each cloned value, to make sure it's correct.In your case, I'd suggest using rwmb_{$field_id}_value which allows you to check and modify the submitted value.
Anh Tran
KeymasterHi, I haven't tested but I think a rule like
['logo', '!=', '']should work. Can you please try it.January 24, 2020 at 9:07 AM in reply to: ✅Clone file field in group is not displayed on edit page #17989Anh Tran
KeymasterHi Yumikom,
Can you share your code of the field group and some screenshots?
Anh Tran
KeymasterHi Nick,
Which translation plugin do you use?
Anh Tran
KeymasterWe have switched to select4 and it doesn't support this feature anymore. There is some workaround here and the confirmation from the author.
Anh Tran
KeymasterHi Davide,
I'm afraid I can't give you an estimate at the moment. We have quite a long to-do list and this feature has less priority than some other items.
January 24, 2020 at 8:57 AM in reply to: ✅Issue for Map field output when page/content is loaded dynamically #17985Anh Tran
KeymasterI see. Maybe you need to manually enqueue the Google maps script on the page before running the snippet above. Something like this:
add_action( 'wp_enqueue_scripts', function() { RWMB_Map_Field::admin_enqueue_scripts( ['api_key' => 'your key', 'language' => 'en'] ); } );Anh Tran
KeymasterHi, there was a bug in the MB User Meta extension that relates to this issue. Please update the extension and try again.
Anh Tran
KeymasterCan you provide more details on that? Any screenshots/videos?
-
AuthorPosts