If you want to create a dynamic image gallery in WordPress, a masonry layout is a strong choice. With a masonry image gallery, your photos are arranged in a cascading grid where each item fills the available vertical space, creating a modern and varied look.
With the Media Listing block from Nexter Blocks, you can create a masonry photo gallery in WordPress directly in the block editor.
To check the complete feature overview documentation of the Nexter Blocks Media Listing block, click here.
Requirement – This block is part of Nexter Blocks. Make sure it is installed and activated.
Best Used For:
- Photography portfolios or creative agency sites where images are different heights and a masonry grid creates visual rhythm
- WooCommerce product galleries where you want to display multiple product images without forcing a uniform grid
- Blog or featured image sections where a cascading layout fills the page without leaving empty gaps
To do this, add the Media Listing block to the page:
1. Select Images from the Type section.
2. Then select the appropriate listing style and select Masonry from the Layout section under the Layout tab.

Note: Similarly, you can create a video gallery grid by selecting Videos from the Type section.
You can also select the image popup type from the Popup Layout dropdown. Use this when you want visitors to view full-size images in a lightbox without leaving the page.
To add hover zoom or overlay effects to your gallery images, see How to Add Advanced Effects to an Image in WordPress? for additional image styling options in Nexter Blocks.
3. In the Content tab, select the appropriate content source and add images to the gallery.
Now your gallery will display in a masonry layout. Manage the number of columns from the Columns Manage tab to control how images are distributed across different screen sizes.

Also, read How to Create WordPress Image Gallery in Metro Layout?











