• Watch the video to see the problem:
    https://www.youtube.com/watch?v=mKJK3P4xuYU

    My code:

    use Carbon_Fields\Container\Container;
    use Carbon_Fields\Field\Field;
    
    function abcdxyz_carbon_fields_setup() {
    	Container::make('post_meta', 'Main')
    	->show_on_post_type('post')
    	->add_fields(array(
    
    		Field::make('complex' , 'aaaaa', 'Aaaaaa')
    		->add_fields('bbbb', array(
    
    			Field::make('complex' , 'cccc', 'Ccccc')->set_width(50)
    			->add_fields('oooo', array(
    				Field::make('text', 'ccc1', 'Cccc1')->set_width(10),
    				Field::make('text', 'ccc2', 'Cccc2')->set_width(90),
    			)),
    
    			Field::make('complex' , 'dddd', 'Ddddd')->set_width(50)
    			->add_fields('oooo', array(
    				Field::make('text', 'ddd1', 'Dddd1')->set_width(10),
    				Field::make('text', 'ddd2', 'Dddd2')->set_width(90),
    			)),
    
    		))
    
    	));
    
    }
    add_action('carbon_register_fields', 'abcdxyz_carbon_fields_setup');

    https://www.ads-software.com/plugins/carbon-fields/

Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Problem with nested complex fields’ is closed to new replies.