Image Gallery is not properly displaying images from a custom post type, Festival Images generated by CPT UI. Want to have three columns but only displays in a single column.
In addition, the next and prev arrows are hidden in the lightbox. Can’t switch image by keyboard, either.
Is there any other way to display images in gallery mode with lightbox?
To get this straight: you have a custom post type that contains posts with an image assigned to them. You use the query loop to display the posts, output the images using the image gallery element, and expect all the images to be output together in a single gallery, right?
That’s not how it works. The way you did it, you have a single gallery per post that contains only one image (that’s why no arrows are displayed because there is always only one image per gallery). So even if each post contains multiple images (e.g., from a custom field), you can’t merge them into one giant gallery with the query loop.
You would have to query each post first, then the image(s) to push them into an array afterward, and then output them in a gallery.
The question is, why does the gallery need to be dynamic?
Either way, this is not a bug.
Thank you for your quick and clear feedback.
Unfortunately, the pro version of ACF is required to have a Gallery type. Will use a free image gallery plugin instead.