SOLVED: Image Gallery issue with images from a Custom Post Type

Bricks Version: 1.4
Browser: Chrome 90
OS: Windows
URL: Images NY2019 – Architecture & Design Film Festival

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?

Thanks.

Hi Hiekeun,
Thanks for reaching out!

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.

Best regards,
timmse

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.

Thanks again,
-higgin

hello @higgin

What solution and plugin did you end up using? I’m stuck on building something similar.

Using New Photo Gallery plugin by A WP Life. It’s one of the best free plugin gallery plugins.

Hope this helps

-higgin