I’m creating a CPT called Gallery for a client. It’s pretty simple with the normal post fields but I have added a field group with an image advance for all the galleries images.
I have a single-page template set up. The images from the CPT are going to appear in a slider. I’m having trouble working out how to dynamically display the gallery images in the slider.
I could query the folder but this wouldn’t be dynamic. I’m essentially querying the images associated with the post.
I did find this post that helps a bit. I was able to get the images to display plus their title and caption but they seemed to be stacking on top of each other instead of displaying as individual slides.
https://forum.bricksbuilder.io/t/dynamic-slider-with-metabox-image-advanced-custom-field/9332/13
Because I couldn’t get it working I have built my own slider. It pulls the image advance fields, title & caption in and I’m using a shortcode to display it.