A grid of posts, where each post card when clicked, opens a lightbox displaying images from the respective post’s Gallery-type ACF field.

Prerequisite: Dynamic Lightbox element of BricksExtras should be enabled.

What gets copied: Section

Replace {acf_post_gallery} in the Dynamic Lightbox element with the dynamic tag of your ACF Gallery field and in the Code element’s condition.

The last post in the live example below does not have the Gallery field populated to demonstrate that in such cases, we don’t show the lightbox icon when the featured image is hovered.

Posts

Click to Copy