have_rows count acf php
snippet in php

have_rows count acf php

user6978

$numrows = count( get_field( 'field_name', 'post_id' ) );
// post_id isn't need but required in some situations