Hello,
This is a weird one, the ACF Relationship loop returns nothing when the ACF field name comes from L&L Set/Get.
Here’s my code:
<Set name="field_name">
<If singular type="type_1">
field_1
<Else if singular type="type_2" />
field_2
</If>
</Set>
<Loop acf_relationship="{Get field_name}">
<div><Field title /></div>
</Loop>
<Get name="field_name" />
{Get field_name}
in the ACF Relationship loop is uneffective.
While <Get name="field_name" />
at the end of the template returns field_name
's value alright.
I tried different syntaxes, all fails:
<If singular type="type_1">field_1<Else if singular type="type_2" />field_2</If>
(single line)
<Loop acf_relationship={Get field_name}>
<Loop acf_relationship={Get name='field_name'}>