Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Jay,
There's a bug in AIO. I'll update it tomorrow.
Anh Tran
KeymasterHi Dragan,
I've just checked your code and the functionality works. However, the UI for collapsible group is bad and need to update. Here is my screenshot:
https://screenshots.firefox.com/CXW5u58MDPx6uxLS/localhost
I'll update the group to address this issue.
Thanks for letting me know.
January 29, 2019 at 11:14 PM in reply to: ✅Display issues with MetaBox (CSS issue) on taxonomy pages (with suggested FIX) #13158Anh Tran
KeymasterHi Dragan,
Thanks a lot for your feedback and your suggested fix. I really appreciate that.
The latest version of Tabs had some updates for User profile and Settings page. Perhaps that break the code for the Term page. I'll check that again with my team mate and update the plugin asap.
January 29, 2019 at 11:09 PM in reply to: ✅Select elements with long titles from relationship boxes break out of meta box #13157Anh Tran
KeymasterHi Dragan,
Thanks a lot for your feedback. We'll check and fix this issue soon.
January 29, 2019 at 11:07 PM in reply to: ✅Change Destination Of Custom File Upload Field Type #13156Anh Tran
KeymasterHi Lucjan,
We've just finished the feature and the code is available on Github. Please download and try it.
In a couple of days, I'll release a new version of Meta Box and write a tutorial about that.
To upload to custom folder, please use
filefield and set a new attributeupload_dirto the path of the new folder, like this:array( 'type' => 'file', 'id' => 'f', 'name' => 'File', 'upload_dir' => '/path/to/your/folder/', // You can use ABSPATH . '/downloads/' )Anh Tran
KeymasterHi Axel,
I've just tried creating a Button with the Builder and set the Button text as follows:
https://screenshots.firefox.com/MOAClmMZnWO3MiAf/localhost
And here is how it looks when editing a post:
https://screenshots.firefox.com/GtG8A0pa2aleAgR5/localhost
Can you please try again?
Anh Tran
KeymasterHi Mark,
1) I started to do an extension for the Customizer 2 years ago. But the more developing, the more I realized that I had to rewrite the whole plugin to port it to JavaScript. So, I stopped. At the moment, the MB Settings Page only supports back end pages, not in the Customizer.
2) To make it compatible with Customizer, you need to set
'option_name' => "theme_mods_$themeslug"in your settings page. Then the MB Settings Page will save data into theme mods, which are used by the Customizer.Anh Tran
KeymasterHi Clayton,
It's a bug in the AIO package. I'll update it tomorrow. At the moment, please use the MB User Profile extension separately.
Anh Tran
KeymasterHi David,
No, the plugin use
$wpdbdirectly to add/update the data. Please use this:global $wpdb; $data = [ 'ID' => $post_id, 'field_1' => 'value_1', 'field_2' => 'value_2', ]; $wpdb->insert( 'your_table', $data );Anh Tran
KeymasterHi Purdue, this is a bug in our AIO plugin. Are you using it?
To fix this, please use the MB User Profile extension separately at the moment. We'll fix the AIO soon.
Anh Tran
KeymasterPlease use this function:
$meta_box = rwmb_get_registry( 'meta_box' )->get( 'YOUR_META_BOX_ID' ); $fields = $meta_box->fields;Anh Tran
KeymasterHi @swartjie, I tried to replied your contact message, but your email was incorrect. I wanted to send you the updated version for testing before updating AIO. I've just sent via FB Messenger, can you please check?
@Clayton: Let me check that. Thanks for letting me know.
Anh Tran
KeymasterHi, thanks a lot for your feedback and debug. I'll check the bundled version in AIO and fix it asap.
Anh Tran
KeymasterCan you take some screenshots and/or videos? I have no clue why it shows the message :(. Here is the guide to take screenshots and videos.
Anh Tran
KeymasterHmm, couldn't find anywhere the JSON value is stored.
However, I found something confusing in your code:
This part:
if( is_string($field['value']) && is_array(json_decode($field['value'], true)) ) { $array = json_decode( $field['value'] ); $i = 0; foreach( $array as $value) { update_post_meta($post_id, '_property_' . $new_level . '_' . $field['key'], $value[$i]); $i++; } } else {...}Here you check if
$field['value']is a json-string. But when you decode it with$array = json_decode( $field['value'] );, then$arraywill be an object! Not sure why the nextforeachloop work. -
AuthorPosts