Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterI meant the MB User Meta extension. Its changelog is here. I've just tested your code and it works fine to me.
Anh Tran
KeymasterAnh Tran
KeymasterHi pza,
Have you updated the plugin to the latest version? There was an issue with enqueuing assets in MB User Meta extension and that was fixed recently.
Anh Tran
KeymasterHi Nick,
Thanks for your reply. I just noticed I have a setter method public, which is quite simple (and naive). So, it's fine to make the property public. I just released a new version for the extension. Please update.
Anh Tran
KeymasterHi Dave,
Please try to add multiple popups. Each popup corresponds to a post. That way you don't need to populate the popup dynamically.
Anh Tran
KeymasterHi Nick, the reason we make the property protected is because we don't want people to change it.
Can you tell me why do you want to the the table name? Is that the table you created with your own code? Why don't you just pass the string (table name) instead of getting from fields?
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?
-
AuthorPosts