Forum Replies Created
-
AuthorPosts
-
May 20, 2016 at 10:13 PM in reply to: Lots of images in an image_advanced can wipe all images in that field on save #3134
Anh Tran
KeymasterHi, we're working on that. First we tried to use hidden input as Sam suggested, but it had some problems with cloning feature. So we postpone to find a better solution. We'll update as soon as there's a good solution.
Anh Tran
KeymasterCurrently, it's fixed to
display_name. I will think more about that and probably will add a filter so you can select which user's field will be displayed.Anh Tran
KeymasterHmm, can you try the "Check again" button in the Dashboard > Updates? That forces WordPress to check for updates immediately. I couldn't find anything related to the settings page because it only saves the API key, it doesn't check for update when saving. Is there a chance that you entered incorrect API key previously?
Anh Tran
KeymasterOh, there is a syntax error in your code. Here is the correct one:
$meta_boxes[] = array( 'id' => 'infos_supp_adherent', 'title' => "Informations sur l'Adhérent", 'post_types' => array( 'adherent' ), 'fields' => array( array( 'name' => "Nom", 'id' => $prefix . "adherent_nom", "type" => "text", "required" => true, "clone" => false, ), array( 'name' => "Prénom", 'id' => $prefix . "adherent_prenom", "type" => "text", "required" => true, "clone" => false, ), array( 'name' => "Date de Naissance", 'id' => $prefix . "adherent_naissance", "type" => "date", "required" => true, "clone" => false, "dateFormat" => "dd/mm/yy", ), // Error was here when you close the outter bracket array( 'name' => "Coordonnées", 'id' => $prefix . "adherent_coordonnees", 'type' => 'group', //'required' => true, 'clone' => true, 'fields' => array( array( 'name' => 'Information', 'id' => $prefix . "adherent_coordonnees_valeur", 'type' => 'text', 'required' => true, 'clonable' => false, ), ), ), ), );Anh Tran
KeymasterThat's nice. I'm slowly working on extensions to make them safe to be included in plugins/themes to make sure they are backward compatible. Currently the Group is done and more extensions will come.
Anh Tran
KeymasterI think it's not a bug. The helper function
rwmb_metaworks with current post object, e.g. theglobal $post;. In your loop, you don't usesetup_postdata( $post );to make the current post in the loop the global, so it won't work.To resolve this, simply add the 3rd parameter to
rwmb_metalike this:rwmb_meta( 'radix_eventstart', '', $recent['ID'] );Anh Tran
KeymasterIt's not supported for now. I will add support for terms in a future version.
Anh Tran
KeymasterAnh Tran
KeymasterThe group's value is an array of sub-fields' values and is saved as a single entry in the database. You can use the following code:
$value = array( 'sub_field_value_1', 'sub_field_value_2', // ... ); update_post_meta( $post_id, 'group_id', $value );Anh Tran
KeymasterHi Eric,
Please see an example here: http://pastebin.com/wGg9sPRQ
Here is another example: http://pastebin.com/Xj4J3DiA
Anh Tran
KeymasterYou can automatically update the plugin using the Meta Box Updater or manually download the extension, unzip and upload to your site, overwrite old files.
Anh Tran
KeymasterHi @brightcreations,
I've just released the new version of MB Group which supports for multi-level nested groups. Please try it and let me know the result.
PS: Due to JavaScript problem, the media field and WYSIWYG field couldn't be cloned in multi-level nested groups. So please don't use them.
Anh Tran
KeymasterLast time I included both the extension's main file and the group class. I've just pushed a new version of the plugin with fix for this (and a big improvement for supporting multi-level nested groups).
Please try it and let me know if you find any bug. Thanks.
-
AuthorPosts