'_recipe_page_options', 'title' => 'Recipe details', 'post_type' => 'recipes', 'context' => 'normal', 'priority' => 'default', 'sections' => array( // begin: a section array( 'name' => 'general', 'title' => 'General', 'icon' => 'fa fa-cog', // begin: fields 'fields' => array( array( 'id' => 'difficulty', 'type' => 'select', 'title' => 'Difficulty', 'options' => array( 'easy' => 'Easy', 'medium' => 'Medium', 'advanced' => 'Advanced', ), 'default_option' => 'Select a difficulty', ), array( 'id' => 'time', 'type' => 'number', 'title' => 'Time', 'help' => 'Insert minutes', ), array( 'id' => 'serves', 'type' => 'number', 'title' => 'Serves', 'help' => 'Insert number of person', ), ), // end: fields ), // end: a section // begin: a section array( 'name' => 'ingredients', 'title' => 'Ingredients', 'icon' => 'fa fa-tint', 'fields' => array( array( 'id' => 'ingredients', 'type' => 'group', 'button_title' => 'Add New', 'accordion_title' => 'Add New ingredients', 'fields' => array( array( 'id' => 'ingredients_text', 'type' => 'textarea', 'title' => 'Ingredients', ), ), ), ), ), // end: a section // begin: a section array( 'name' => 'nutrition_info', 'title' => 'Nutrition info', 'icon' => 'fa fa-tint', 'fields' => array( array( 'id' => 'nutrition', 'type' => 'group', 'button_title' => 'Add New', 'accordion_title' => 'Add New ingredients', 'fields' => array( array( 'id' => 'nutrition_text', 'type' => 'textarea', 'title' => 'Nutrition', ), ), ), ), ), // end: a section // begin: a section array( 'name' => 'preparation', 'title' => 'Preparation', 'icon' => 'fa fa-tint', 'fields' => array( array( 'id' => 'preparation', 'type' => 'group', 'button_title' => 'Add New', 'accordion_title' => 'Add New preparation', 'fields' => array( array( 'id' => 'preparation_text', 'type' => 'textarea', 'title' => 'Preparation', ), ), ), ), ), // begin: a section array( 'name' => 'gallery', 'title' => 'Gallery', 'icon' => 'fa fa-tint', 'fields' => array( array( 'id' => 'gallery_group', 'type' => 'group', 'button_title' => 'Add New', 'accordion_title' => 'Add New image', 'fields' => array( array( 'id' => 'gallery_image', 'type' => 'image', 'title' => 'Image', ), ), ), ), ), // end: a section // begin: a section array( 'name' => 'embed_video', 'title' => 'Embed video', 'icon' => 'fa fa-tint', 'fields' => array( array( 'id' => 'embed_video_group', 'type' => 'group', 'button_title' => 'Add New', 'accordion_title' => 'Add New image', 'fields' => array( array( 'id' => 'embed_video_text', 'type' => 'textarea', 'title' => 'Embed video code', ), ), ), ), ), // end: a section ), ); // ----------------------------------------- // Recipe Metabox Options - // ----------------------------------------- $options[] = array( 'id' => '_blog_options', 'title' => 'Blog details', 'post_type' => 'post', 'context' => 'normal', 'priority' => 'default', 'sections' => array( // begin: a section array( 'name' => 'general_post', // begin: fields 'fields' => array( array( 'id' => 'short_text', 'type' => 'wysiwyg', 'title' => 'Short text', 'settings' => array( 'textarea_rows' => 5, 'tinymce' => true, 'media_buttons' => true, ) ), ), // end: fields ), // end: a section ), ); CSFramework_Metabox::instance($options);