Maybe it will be clearer with proper code.
So, first, I have a CPT for courses.
In that CPT, I use ACF for the details of the courses.
One of the field is a repeater field : each course cans have multiple group (each group have a different start time and an URL to register).
On the courses page, I display the groups using the following code:
What I want here, is to display a button if there’s a group (get_sub_field…).
If the person click on the button, the popup will appears. I want to have the link in that pop-up. Each group have a different link…