Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterThanks Piet for the great idea! I also think icon font (Dashicons) is much better than images as WordPress already supports it. I will change the plugin to support Dashicons soon.
Anh Tran
KeymasterYou mean you can edit fields without touching code? If so, we have 2 extensions for this purpose: MB Builder extension or MB Template extension.
Regarding the text and image: yes, you can do that. You need to register a group which has 2 sub-fields:
textandfile_input(do not use any image fields here as they won't work for group):$meta_boxes[] = array( 'title' => 'Meta Box Title', 'post_types' => 'custom-post-type', 'fields' => array( array( 'id' => 'group', 'type' => 'group', 'clone' => true, 'fields' => array( array( 'id' => 'text', 'name' => 'Text', 'type' => 'text', ), array( 'id' => 'image', 'name' => 'Image', 'type' => 'file_input', ), ), ), ), );Anh Tran
KeymasterCan you try
selectinstead? I thinkselect_advanceddoesn't trigger the correct event when field is updated because it's usingselect2library.Anh Tran
KeymasterCan you please show me the code to register meta boxes? Also, is there any errors in the console?
Anh Tran
KeymasterHow did you integrate Meta Box into your theme? It's quite important here as the twentyfifteen still works. Can you provide more details on that?
Thanks.
PS: Here is the documentation on how to include Meta Box in themes/plugins: https://metabox.io/docs/include-meta-box-plugin-themes/
Anh Tran
KeymasterHi syswperu,
I'm really sorry to hear that. But I'm afraid that I can't offer the Core Extensions Bundle at $35. The bundle has already 60% discount which is considered very cheap to the total price of all extensions. Besides, you need only 3 extensions ๐
Anh Tran
KeymasterHi guys,
Sorry for this inconvenience. I've just updated all files on both Gumroad and on this website, so you can download the latest version now (Conditional Logic now is 1.0.3).
Thanks for reporting.
Anh Tran
KeymasterI've just updated the code with a fix for this. Can you please try the latest version of Meta Box on Github?
PS: The video is really helpful! Thanks a lot for this.
Anh Tran
KeymasterMuch appreciated. I'm looking.
August 6, 2015 at 12:28 PM in reply to: MB Group Clone with sort_clone issue, re-positioned group is replaced #1173Anh Tran
KeymasterJust committed a fix for this bug. Can you please try the latest version on Github?
Thanks.
August 6, 2015 at 9:18 AM in reply to: MB Group Clone with sort_clone issue, re-positioned group is replaced #1172Anh Tran
KeymasterHi bucketpress, I'm checking this bug and will add a new fix asap.
Anh Tran
KeymasterJust in the group field, for example:
'fields' => array( array( 'id' => 'group_id', 'type' => 'group', 'fields' => array( // Sub-fields here ), 'clone' => true, // This is all you need ) )Anh Tran
KeymasterYou're using
excludewhich means do not show on these pages (show on all pages except these). You just need to change it toincludewhich means show only on these pages.Anh Tran
KeymasterYes, it's possible. If you set
multipletotrue, then the value of$row_value['intiative_links']will be an array, you need to loop through it to output the result:$group_value = rwmb_meta( 'initiatives_group' ); foreach ( $group_value as $row_value ) { echo '<div class="the_image"><img src="' . $row_value['initiative_image'] . '"></div> <div class="the_title">' . $row_value['initiative_title'] . '</div>'; echo '<div class="the_links">'; foreach ( $row_value['intiative_links'] as $id ) { echo '<a href="' . get_permalink( $id ) . '">' . get_the_title( $id ) . '</a>'; } echo '</div>'; }Anh Tran
KeymasterYes, it is. To clone a group, please add
'clone' => trueto the group field. -
AuthorPosts