Hi,
I set up an ACF image gallery with a lightbox using modal element from a You Tube tutorial from Josh Donnelly. When I setup in a Single Layout in CS it’s a clear to me and works like a charm!
[https://lapauline.nl/wp/album/lunch/](https://lapauline.nl/wp/album/lunch
Now I like to use exact the same in a normal CS page. Just pull the galley in from ACF.
https://lapauline.nl/wp/lunch/](https://lapauline.nl/wp/lunch
I made a Custom Post type in ACF named “Albums” Within this Custom Post type is a fieldgroup named “Fotos” with the fields “Foto album” (gallery) and “test” (text)
So in my Custom Post type I made the post “Lunch album” with a gallery containing 7 photo’s and in the textfield “test”, I entered ”Click me!”
I copied the whole section of my Single Layout to a normal CS page and off course this won’t work because I can not put conditions in assignment.
Can you help me to get this work in a normal page so I can put in photo galleries from the Custom Post type? I tried a lot but can’t find how to put in the photos. When I use the Query Builder and set Posts Types to Album and Specific Posts include Lunch album, I can get the text field “test” with {{dc:acf:post_field field=“test”}} but can find out how also pull in the photos. I’m now trying with {{dc:looper:item}} but that’s not working.
THX, Carel