Infinite loop with conditions in a Pods Template
-
Hello,
I want to create conditions in a PODS template, in order to list the staff of an agency.
I created 2 pods:
– agency (content), with a relational field “personnel_agency” to the staff
– staff (content), with a relational field “agency” to “agency”Here is the code:
<h2>Personnel list {@post_title}</h2>
[each personnel_agency]
[before]- [/before]
- {@personnel_agency.post_title}
[after]
[/after]
[/each]The result shows the staff well, but the list repeats itself infinitely like this!
John Doe
Gi Joe
John Doe
Gi Joe
John Doe
Gi Joe
John Doe
Gi Joe
John Doe
Gi Joe
….I start my experience with Mods, would you have an idea or a solution?
Should I transform the agency pods into taxonomy to solve the problem?Regards
- The topic ‘Infinite loop with conditions in a Pods Template’ is closed to new replies.