Forum Replies Created
-
AuthorPosts
-
February 22, 2020 at 11:52 AM in reply to: ✅Field conditional logic doesn't work with Gutenberg #18374
Anh Tran
KeymasterHi Yumikom,
I see you set a condition to show a field based on
post_type. Unfortunately, the plugin doesn't support that kind of condition. You can change the visibility of a field or a meta box based on a value of another field or another input.February 22, 2020 at 11:50 AM in reply to: ✅how to disable or readonly a fieldgroup for a specific user or user role ? #18373Anh Tran
KeymasterHi,
Thanks for the clarification. I think it can be done with custom JS code. Basically, you need to listen for changes in inputs and enable/disable the
readonlyattribute of fields.Anh Tran
KeymasterHI Nicola,
The VAT amount is automatically collected by the payment gateway (Gumroad in this case).
Can you please send me the total amount, so I can generate an invoice for you?
Anh Tran
KeymasterHi rfors,
Thanks for your message. Unfortunately, we haven't finished this feature yet. We'll let you know when it's done.
February 20, 2020 at 3:58 PM in reply to: ✅image_upload field select files not working on iphone #18354Anh Tran
KeymasterHi, let us check that. Thanks for reporting.
Anh Tran
KeymasterHi Calpaq,
There's an action
rwmb_frontend_after_submit_buttonthat you can use to output your custom button. It's still after the wrapper div, but I think you can make it inline with CSS.Anh Tran
KeymasterHi,
Previously, we use serialized data to store the data (just like WP do for all the options and post/term/user meta). So we use the .dat extension, which simply means "data". You can convert the data between PHP/.dat easily using serialize/unserialize functions. There's no difference between that and json_encode/json_decode.
Anh Tran
KeymasterHi, thanks for your feedback. I've just fixed it and released a new version.
February 19, 2020 at 10:52 AM in reply to: ✅MetaBox user field - how to show current value when query args exclude it #18337Anh Tran
KeymasterHi Hywel,
It should be placed inside the
rwmb_meta_boxesfilter, just before your meta box registration code, like this:add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) { $include = []; if ( $_GET['post'] ) { // Edit a post $post_id = $_GET['post']; $user_id = get_post_meta( $post_id, 'user_id', true ); $include[] = $user_id; } $meta_boxes = [ 'title' => 'Test', ... 'fields' => [ [ 'name' => 'Member', ... 'query_args' => [ 'include' => $include, .. ] ], ], ]; } );February 19, 2020 at 10:20 AM in reply to: ✅MB User Profile -> Registration form -> validate loses other fields #18336Anh Tran
KeymasterOh! Thanks a lot for your feedback. I'll fix it now.
February 17, 2020 at 9:44 PM in reply to: ✅single image field with the id _thumbnail_id is not showing after latest updates #18323Anh Tran
KeymasterHi,
Do you have featured image enable for that post type? If yes, then maybe there are 2 fields with the same ID and the default featured image might override the Meta Box field.
February 17, 2020 at 9:42 PM in reply to: ✅how to disable or readonly a fieldgroup for a specific user or user role ? #18321Anh Tran
KeymasterHi,
The plugin doesn't support hiding fields by user roles/IDs. You can try to add your own JS callback or use MB Include Exclude extension. This extension works with user roles/IDs, but works for showing/hiding meta boxes, not fields.
February 17, 2020 at 9:37 PM in reply to: ✅MB User Profile -> Registration form -> validate loses other fields #18320Anh Tran
KeymasterHi Martin,
I open your page and see an error in the console, saying that the JS file (
https://mydsk.co.za/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-user-profile/assets/user-profile.js?ver=1.4.3) is not loaded. Can you check if that file is available? Maybe it's missed when uploading/updating the plugin. Can you please try re-installing the plugin?February 17, 2020 at 9:34 PM in reply to: ✅MetaBox user field - how to show current value when query args exclude it #18319Anh Tran
KeymasterHi, I got the problem. The query args inherits all parameters from get_users() function, which has a parameter
includethat you can use in case of editing a membership.This is a pseudo-code I could imagine:
$include = []; if ( $_GET['post'] ) { // Edit a post $post_id = $_GET['post']; $user_id = get_post_meta( $post_id, 'user_id', true ); $include[] = $user_id; } // Then in the query args, just add 'include' .. 'query_args' => [ 'include' => $include, .. ],Anh Tran
KeymasterHi, we use
$.datato set the controller for the element. This is a jQuery function and it sets an object (controller), which I guess is not available viaElement.dataset. The jQuery docs says:Using the data() method to update data does not affect attributes in the DOM. To set a data-* attribute value, use attr.
-
AuthorPosts