Forum Replies Created
-
AuthorPosts
-
December 14, 2018 at 5:36 PM in reply to: โ Your main plugin "meta-box" ignore language settings in WP #12673
Anh Tran
KeymasterFinally, I got it fixed here. Calling to
get_plugin_datain the About page causes the bug. Not sure why ๐December 14, 2018 at 2:33 PM in reply to: โ Image Upload: image is deleted after change position using drag and drop #12671Anh Tran
KeymasterThanks for your feedback. I've just noticed the issue on WP 5.0.1. Did you test with the same version (or Gutenberg)?
Update:
Turns out it's a bug in the plugin when
force_delete=true. I've fixed on Github. Can you please check it?Anh Tran
KeymasterHi Doug,
I've just made the video to check the problem. So far it works for me: http://recordit.co/mRNyr8h4f2. Can you try again?
I also recorded another video to demonstrate more complex actions: http://recordit.co/MrHGxyfzAM
It seems to work well on my side.
Anh Tran
KeymasterHi Jonathan,
Can you try the latest version on Github?
Anh Tran
KeymasterHey guys,
Thanks a lot for testing! I've fixed the bug that Doug pointed out. This bug prevents the data from saving. Can you please try the latest version on Github?
https://github.com/wpmetabox/mb-relationships
It's the dev version and not the same as 1.4.1 version on .org. I will release version 1.5.0 if this works ๐
Anh Tran
KeymasterOh, you use group! So the code to get the point should be different a little bit. I've fixed your code to: https://ghostbin.com/paste/9p34h. Please take a look.
December 14, 2018 at 10:29 AM in reply to: โ Can I export and import custom taxonomies and CPT #12665Anh Tran
KeymasterHi,
Yes, it's possible. Please just use the WordPress Import/Export under Tools > Import / Export to do that. Simply select Post Type and Taxonomy from the list of custom post types when export.
Anh Tran
KeymasterWordPress hard-coded that in its function
get_the_content, so there's no filter to do that automatically. Maybe you write a wrapper function forrwmb_metalike this:function your_meta( $field_id, $args = [], $post_id = null ) { if ( post_password_required ) { return 'This post is password protected.'; } return rwmb_meta( $field_id, $args, $post_id ); }Then use
your_metain replace forrwmb_meta.Anh Tran
KeymasterJust save it in a temporary variable (a class property if you're using a PHP class, or a global variable if you use normal functions).
December 13, 2018 at 4:27 PM in reply to: Setting Advanced Attributes for Admin Columns via MB Builder #12643Anh Tran
KeymasterHi,
Thanks for your feedback.
I think in the dot notation, you can simply set:
Advanced attribute key: admin_columns.position
Advanced attribute value: before name(no '.0' in the key).
Using .0 makes the plugin think it's a multi-dimensional array. Please try again with that.
Regarding the sorting with value from custom table, we're working on that. At the moment search and sort for custom table is not supported.
December 13, 2018 at 4:23 PM in reply to: โ Your main plugin "meta-box" ignore language settings in WP #12642Anh Tran
KeymasterCan you try with a fresh install on http://poopy.life? Also, do you have some input method for keyboards enabled? I've just tried again but couldn't replicate the problem :(.
Anh Tran
KeymasterCan you check the WordPress database to see if the
mb_relationshipstable is created?Anh Tran
KeymasterHi Charlin,
You don't need 2
taxonomyfields. One field is enough, because it's used to set post terms. It doesn't store values in custom fields.If you want to use 2 taxonomy fields, and save values in custom fields, please use
taxonomy_advancedinstead.Anh Tran
KeymasterHi Vee,
Looks like no relationships table is created. Can you remove your code first, try to deactivate and re-activate the plugin? Just to make sure the plugin creates table successfully.
Anh Tran
KeymasterIt's nearly impossible to guarantee the order of fields saved. So I'd suggest using
rwmb_before_save_posthook to get all the old values of a post before other fields are updated. Then userwmb_after_save_postto update the needed fields. -
AuthorPosts