• Resolved Geminiluv

    (@geminiluv)


    Hello,

    I am just starting with timber/twig editing an existing view in a theme. I am having an issue with the counter in a loop. I have 2 tables being populated by the view pulling from an ACF form. The tbody in the loop starts with {% set counter = 1 %} and ends with {% set counter = counter + 1 %} at the end of the loop. Problem is the second table populates the title field correctly but when it pulls the oEmbed fields from ACF it duplicates the same URLs from the first table instead of continuing the count of the oEmbed fields. Any help would be greatly appreciated. I been scouring forums and documentation but I cannot seem to find how to make it continue the count instead of starting over for the second table.

    Thank you!

    https://wordpress.org/plugins/timber-library/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Counter in loop’ is closed to new replies.