A WordPress Masonry gallery is a popular gallery layout that uses optimal space to place images without the need to crop your images.
The most well-known example of masonry is on Pinterest, and you will sometimes hear people refer to the layout as a “Pinterest layout”.
Each gallery you create will come with its own shortcode, once the gallery is created the shortcode will get created so you can paste it anywhere on your website.
In order to have a Masonry gallery, you need to create a gallery under Gallery and configure its type as ‘Masonry’.
Each image in your gallery can have captions or text, simply edit your gallery, click on each image in your gallery and a small side panel will show up for such image, with options like title, caption, alt text, and description. What you will need is to fill the “Caption” field and text will display under that image in your gallery.
The look of the captions can be customized via CSS.