• Resolved voanhkhach

    (@voanhkhach)


    Hello
    i want display repeater field in post as table
    help me border and padding it
    i have try with

    <?php 
    
    $rows = get_field('repeater_field_name');
    if($rows)
    {
    	echo '<ul>';
    
    	foreach($rows as $row)
    	{
    		echo '<li>sub_field_1 = ' . $row['sub_field_1'] . ', sub_field_2 = ' . $row['sub_field_2'] .', etc</li>';
    	}
    
    	echo '</ul>';
    }
    
    style
    .table {
    border: 1px solid;
    }

    but not success
    pls help me

    https://ww.wp.xz.cn/plugins/advanced-custom-field-repeater-collapser/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘help me border and padding table’ is closed to new replies.