Lnsel Post Gallery Lightbox
·
Upload images per-post and display them as a responsive Grid or Masonry lightbox gallery using the [lnsel_gallery] shortcode.
Lnsel Post Gallery Lightbox lets you upload a dedicated set of gallery images to any post or page via a custom meta box in the WordPress editor. Those images are then displayed on the front end using the [lnsel_gallery] shortcode — with a smooth lightbox, keyboard navigation, touch swipe support, and a choice of Grid or Masonry layout.
Key Features:
- 📷 Custom "Post Gallery Images" meta box on every post/page edit screen
- 🖼 Drag-and-drop image reordering in the editor
- ⚡ Choose between Grid (uniform tiles) or Masonry (Pinterest-style) layout
- 🔍 Built-in lightbox with arrow navigation, keyboard (← → Esc), and touch swipe
- 📱 Fully responsive — 4 → 3 → 2 → 1 columns at breakpoints
- 🙈 Gallery section is completely hidden when no images are uploaded
- 🔌 Works with Elementor via the Shortcode widget
- No jQuery dependency on the front end — pure vanilla JS
Usage
Basic: [lnsel_gallery]
Grid layout, 3 columns: [lnsel_gallery layout="grid" columns="3"]
Masonry layout, 3 columns: [lnsel_gallery layout="masonry" columns="3"]
All available attributes:
layout—gridormasonry(default:grid)columns—2,3, or4(default:3)size—thumbnail,medium,large, orfull(default:large)gap— gap between images in px, number only (default:10)
