[SOLVED] #-Links (Hash-Links) | No ID's on ACF repeater rows?

I have a post single template, content is populated via ACF repeater rows.

Now I need to have #-links to several different locations down the page (= #-links to several different ACF repeater rows). Unfortunately it doesn’t seem to be possible cause Bricks does not add ID’s to ACF repeater rows. This means: No ID’s available, no #-links possible. Bricks seems to only add classes, not ID’s …

Any ideas how to add a custom ID to (every) single ACF repeater rows?

Link to template page:

Screenshot with detailed explanation

I am answering my own post in case anybody is interested in the solution.

Step 1) Create an additional ACF repeater text field for the custom row ID
Step 2) In the Bricks Template: Add a custom attribute on the repeater card/main div
=> name: id
=> value: {name-of-acf-repeater-field-for-custom-id-attribute}

That’s all. Now each repeater row has - if needed - a custom ID!

4 Likes