Support

Account

Home Forums Add-ons Repeater Field Auto Adjust Width Based on Amount of Repeats Reply To: Auto Adjust Width Based on Amount of Repeats

  • There are several ways to get the number of rows

    
    // using get_post_meta
    $row_count = intval(get_post_meta($post->ID, 'tabs', true));
    
    
    // using get_field
    $tabs = get_field('tabs');
    $row_count = count($tabs);