Support Forum » User Profile

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: MB Group not display in post type #2709
    chapkovskichapkovski
    Participant

    and that doesn't work even if the data in the field is stored in the mysql database

    in reply to: MB Group not display in post type #2708
    chapkovskichapkovski
    Participant
    $checkgroup_prefix='filka_'; //тестируем как вообще работают группы
    //=============================
        
    	$meta_boxes[] = array(
    		'title'  => __( 'Тестируем', 'your-prefix' ),
    		'post_types' => array( 'post', 'page' ),
    		'show'   => array(
                'template'    => array( 'template-about-us.php' ),
    			),
    		'fields' => array(
    		        // группа  - редакция
    		        array(
    		            'name' => 'Тестируем поле', // Optional
    		            'id' => 'test_id',
    		            'type'   => 'group', // Group type
    		            'clone'=>false,
    		            // List of sub-fields
    		            'fields' => array(
    						//фио
    						array(
    							'name'  => __( 'ПРОВЕРКА', 'your-prefix' ),
    							'id'    => "{$checkgroup_prefix}fio",
    							'type'  => 'text',
    						),
    				
    					),
    		        ),
    
    		    ),
    	
    	);
    
    
    $group_values = rwmb_meta( 'test_id' );
    if ( ! empty( $group_values ) )
    {
        foreach ( $group_values as $group_value )
        {
            $value = isset( $group_value['filka_fio'] ) ? $group_value['filka_fio'] : '';
            echo $value.'<br>'; // Display sub-field value
            
        }
    }
    in reply to: MB Group not display in post type #2706
    chapkovskichapkovski
    Participant

    The same thing with my Meta box group - after update (I guess) it ceased showing the data!

Viewing 3 posts - 1 through 3 (of 3 total)