Increment Repeater Field Row Counter

This is a quick snippet to increment a row counter for a repeater field. The Slack Formidable Community member that asked how to do this is using the frm_repeat_start_rows filter to pre-load 10 rows in the repeaters. The first field in the repeater is a counter.

To use, change the 234 to the field id of your counter field. For portability to other WordPress environments, use the $field->field_key instead of the ID as in this second example:

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *