- September 27, 2016 at 5:43 PM #4152
- September 27, 2016 at 10:28 PM #4156
Are you using the Group extension? Please post your code to register meta boxes.September 29, 2016 at 1:32 AM #4167
Here is the code. Yes, actually, I like to have a group of announcements inside of a company. Each announcement like a post with html including images and other shortcode support (such as embed video).
$meta_boxes = array( 'id' => 'company_announcements', 'title' => __( 'Company Announcements', 'imp' ), 'post_types' => array( 'company'), 'context' => 'normal', 'priority' => 'low', 'fields' => array( array( 'id' => $prefix.'company_announcement', 'name' => __( 'Announcement', 'imp' ), 'type' => 'group', 'clone' => true, 'size' => 100, 'fields' => array( array( 'id' => $prefix.'company_announcement_title', 'name' => __( 'Title', 'imp' ), 'type' => 'text', 'size' => 60 ), array( 'id' => $prefix.'company_announcement_date', 'name' => __( 'Date', 'imp' ), 'type' => 'date', 'js_options' => array('dateFormat'=>'dd/mm/yy'), 'size' => 60 ), array( 'id' => $prefix.'company_announcement_content', 'name' => __( 'Content', 'imp' ), 'type' => 'wysiwyg', 'size' => 60, 'options' => array( 'textarea_rows' => 3, ) ), ) ), ), 'validation' => array( 'rules' => array( ) ) );October 1, 2016 at 12:50 AM #4202
Did you have any updates regarding to this issue?October 1, 2016 at 2:34 PM #4206October 2, 2016 at 4:15 PM #4211
But after upgrade the meta-box plugin from GitHub, I saw a lot of Notice when generating the fields and then the fields on the Group defined before has turned to Read Only automatically.
So I guess that there something conflict between the Meta Box and Meta Box Group plugins.
I have reverted to the version on the WordPress Plugins site and it’s ok again.October 2, 2016 at 4:20 PM #4212
Actually, I have to used an older version of Meta Box, because the Meta Box plugin which I downloaded from the WordPress Plugins panel, generating the same Notices errors.October 2, 2016 at 8:53 PM #4213
Which version of the Group extension are you using?October 3, 2016 at 10:11 AM #4220
It’s version 1.1.2
Here is the header of the plugin Meta Box Group
* Plugin Name: Meta Box Group
* Plugin URI: https://metabox.io/plugins/meta-box-group/
* Description: Add-on for meta box plugin, allows you to add field type ‘group’ which put child fields into 1 group which are displayed/accessed easier and can be cloneable.
* Version: 1.1.2
* Author: Rilwis
* Author URI: http://www.deluxeblogtips.com
* License: GPL2+
*/October 4, 2016 at 8:24 AM #4231
Please update to the latest version, it’s 1.1.5 now. For more info, please follow this guide:November 10, 2016 at 11:49 PM #4467
I am having the same issue and I am on v1.1.6.
You must be logged in to reply to this topic.