Forum Replies Created
-
AuthorPosts
-
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.Anh Tran
KeymasterHi anja,
Please follow the instruction in the previous reply and the WPML documentation.
Anh Tran
KeymasterHi,
Is the
$prefix = propertyor_property?_propertymatches the actionrwmb__property_level_after_save_field(In this case,$field_idis_property_level).I see you are trying to copy values from old fields to new fields. Please note that, this action happens after field
_property_levelis saved. It doesn't guarantee that it happens before or after other fields are saved.Anh Tran
KeymasterHi Ale,
This depends on how you display custom fields' values in the front end. You need to change your code to check the post status, like this:
if ( post_password_required() ) { echo 'Nothing here'; } else { echo rwmb_meta( 'field_id' ); }December 12, 2018 at 4:45 PM in reply to: ✅Missing fields Yoast SEO after Metabox update to 4.15.8 #12613Anh Tran
KeymasterI have fixed that on Github. Can you please take a look?
December 12, 2018 at 4:44 PM in reply to: ✅Your main plugin "meta-box" ignore language settings in WP #12612Anh Tran
KeymasterYes, Meta Box is activated. See this video: http://recordit.co/oq6Wd5MABC
Maybe it relates to browser language, extension or other things. The plugin doesn't modify anything related to languages at all.
-
AuthorPosts