Answers for "wordpress acf count repeater field"

PHP
1

acf repeater example count

$count = count(get_field('repeater_name'));
Posted by: Guest on July-20-2020
1

have_rows count acf php

$numrows = count( get_field( 'field_name', 'post_id' ) );
// post_id isn't need but required in some situations
Posted by: Guest on June-03-2020

Browse Popular Code Answers by Language