Hello
I am creating a custom acf field type for use in a repeater field. I want to display some text along with the current row number. This is code from my custom acf field, for use in ACFv4
function create_field( $field )
{
// defaults?
/*
$field = array_merge($this->defaults, $field);
*/
// perhaps use $field['preview_size'] to alter the markup?
// create Field HTML
?>
<div>
<input type="text" readonly value="<?php echo '[' .$field['shortcode_name']. ' row=' .$SHOW_ROW_NUMBER_HERE.' ]' ?>">
</div>
<?php
}
Is it possible to display the current row number where I have $SHOW_ROW_NUMBER_HERE?