Blogging & content · Guide
How to Add NextGEN Gallery in WordPress Page (Step by Step)

Short answer
Install NextGEN Gallery, create a gallery under Add Gallery / Images and upload your photos. Then edit the page, add the NextGEN Gallery block, select your gallery and a display type such as thumbnails or slideshow, insert it and click Update. A shortcode also works in page builders.
Key takeaways
- NextGEN stores galleries in its own manager, separate from the Media Library.
- Create and fill the gallery first, then insert it into the page.
- The NextGEN Gallery block opens an insert window to pick a gallery and display type.
- A shortcode lets you place galleries in page builders and widget areas.
- Resize and compress images first to keep galleries fast.
How do you add a NextGEN Gallery to a WordPress page?
Create a gallery under the NextGEN Gallery menu, then edit your page, add the NextGEN Gallery block, choose the gallery and display type, and update the page.
NextGEN Gallery is a free gallery plugin from Imagely, listed in the WordPress.org plugin directory. It keeps its own gallery manager separate from the WordPress Media Library, so you build galleries first and then insert them into pages or posts.
The process has three parts:
- Install and activate the plugin
- Create a gallery and upload images to it
- Insert the gallery into a page with the block, shortcode or classic editor button
| Method | Best for | What you do |
|---|---|---|
| NextGEN Gallery block | Block editor (Gutenberg) | Add the block, pick a gallery in the insert window |
| Shortcode | Page builders, widgets, custom layouts | Paste a shortcode into a Shortcode block or text area |
| Classic editor button | Sites using the Classic Editor plugin | Click the NextGEN button above the editor |
How do you install NextGEN Gallery?
Go to Plugins > Add New, search for NextGEN Gallery, click Install Now and then Activate.
After activation, a new NextGEN Gallery item appears in your admin menu. It holds the gallery manager, album tools and display settings.
If the plugin does not appear in search results, you can download the ZIP from WordPress.org and upload it under Plugins > Add New > Upload Plugin. Keep only one gallery plugin active if you can, since several gallery plugins loading lightbox scripts on the same page can clash.
How do you create a gallery and upload images?
Open NextGEN Gallery > Add Gallery / Images, create a new gallery name, choose your image files, and start the upload.
Step by step:
- Go to NextGEN Gallery > Add Gallery / Images
- In the gallery dropdown, choose to create a new gallery and type a name, such as Office Opening 2026
- Click to select files, or drag and drop images into the upload area
- Start the upload and wait for every file to finish
- Open Manage Galleries to check the images arrived
Imagely's own guide on adding galleries to a page or post shows the same flow with screenshots.
Before uploading, resize very large photos. A phone photo can be several megabytes, which slows down the gallery for visitors. Our guide on how to properly size images in WordPress gives sensible dimensions.
How do you organize images inside a gallery?
Use Manage Galleries to sort images, add titles and alt text, and exclude any photos you do not want shown.
Open NextGEN Gallery > Manage Galleries and click the gallery name. You will see a list of images with fields for each one.
Things worth doing here:
- Add alt text that describes each image for screen readers and search engines
- Add short titles or descriptions if your display type shows captions
- Drag images or use the sort option to set the order
- Tick exclude on any image you want to keep but hide
- Set a preview image, which is used when the gallery appears inside an album
Save changes before you leave the screen. Good alt text helps accessibility and image search, and the W3C's alt text decision tree is a useful guide for writing it.
How do you insert the gallery with the block editor?
Edit the page, add the NextGEN Gallery block, click to add a gallery, pick the gallery and display type in the window that opens, and insert it.
Here is the full process:
- Go to Pages and open the page in the editor
- Click the plus icon where you want the gallery
- Search for NextGEN and choose the NextGEN Gallery block
- Click the button in the block to add or select a gallery
- In the insert window, choose galleries as the source and select your gallery
- Pick a display type, such as thumbnails or a slideshow
- Adjust display settings if you want, then click the insert button
- Click Update or Publish to save the page
The block shows a placeholder in the editor rather than the full gallery. Preview the page to see the real layout.
If you are new to blocks, our guide to the WordPress block editor explains how adding and moving blocks works.
Which display type should you choose?
Choose thumbnails for a classic grid, a slideshow for a rotating banner, and an album when you want visitors to open one of several galleries.
NextGEN offers several free display types. Names can vary a little between versions, but the main ones are:
| Display type | What visitors see | Good for |
|---|---|---|
| Basic thumbnails | A grid of small images that open in a lightbox | Most photo galleries |
| Basic slideshow | One large image at a time that rotates | Hero areas, featured shots |
| Basic image browser | One image with next and previous links | Step-by-step or story photos |
| Basic tag cloud | Tags that filter images | Large tagged collections |
| Albums | Cover images that open individual galleries | Many events or projects |
The premium version adds more layouts and lightbox features. Check Imagely's site for the current list, since features change between releases.
How do you add a NextGEN Gallery with a shortcode?
Copy the shortcode for your gallery and paste it into a Shortcode block, a page builder text widget or a classic editor page.
Shortcodes are handy when the block is not available, for example in some page builders or in widget areas. A typical NextGEN shortcode looks like this:
[ngg src="galleries" ids="1" display="basic_thumbnail"]
Replace the number with your gallery ID, which you can see in Manage Galleries. Change the display value to use a different layout, such as a slideshow.
In the block editor, add a Shortcode block and paste the code inside. In Elementor, use the Shortcode widget. Our explainer on what a shortcode is in WordPress covers how they work in more detail.
How do you add a gallery in the Classic Editor?
In the Classic Editor, click the NextGEN Gallery button above the content area, choose your gallery and display type in the insert window, and click insert.
The gallery appears as a placeholder image in the visual editor. Switch to the Text tab and you will see the shortcode the button created. Click Update to save the page.
This method is the same insert window as the block, so the options and display types match.
How do you change the gallery settings after inserting it?
Click the gallery placeholder in your page to reopen the insert window, or change the default settings for each display type under NextGEN Gallery > Gallery Settings.
There are two levels of settings:
- Per gallery: set in the insert window when you add or edit the gallery on a page
- Site-wide defaults: set in the plugin's gallery settings for each display type
Common settings include the number of images per page, thumbnail size, number of columns, whether to show a slideshow link, and which lightbox effect opens full images. Change the default once if most of your galleries should look the same.
Why is the NextGEN Gallery not showing on the page?
A gallery usually fails to show because the page was not updated, caching is serving an old copy, or a script conflict stops the lightbox or slideshow.
Check these in order:
- Confirm you clicked Update after inserting the gallery
- Make sure the gallery has images that are not excluded
- Clear your cache with our guide on how to clear cache in WordPress
- Turn off JavaScript delay or combine settings for a moment and test again
- Switch to a default theme on a staging site to rule out a theme conflict
If images appear as broken icons, the files may be missing from the server or the folder permissions may be wrong. Our guide on fixing images not showing covers those cases.
How do you keep a NextGEN gallery fast?
Upload images at sensible sizes, let the plugin generate thumbnails, and use lazy loading so visitors only download what they see.
Large galleries can carry dozens of images. A few habits keep them quick:
- Resize photos before upload, usually no wider than your content area needs
- Compress images with a tool or plugin before or after upload
- Split very large collections into several galleries inside an album
- Use pagination so each page shows a limited number of thumbnails
Modern browsers support native lazy loading for images, which MDN explains in its lazy loading guide. WordPress adds it to many images automatically, but gallery plugins may handle loading their own way.
Our guide on how to optimize images for WordPress covers compression and modern formats in more detail.
Should you use NextGEN or the built-in Gallery block?
Use the built-in Gallery block for simple grids, and NextGEN when you need separate gallery management, albums, slideshows or many large galleries.
WordPress already includes a Gallery block that needs no plugin. It is lighter and works well for a handful of images on one page.
NextGEN makes more sense for photographers, event sites and portfolios with many galleries that need to be reused across pages. If you only need a simple grid, the core block is the leaner choice.
Frequently asked questions
Is NextGEN Gallery free?
Yes, the core NextGEN Gallery plugin is free on WordPress.org and includes basic thumbnails, slideshows, image browser and albums. Imagely sells premium versions with more layouts and features, so check their site for current plans.
Where do I find the NextGEN gallery ID?
Go to NextGEN Gallery > Manage Galleries. Each gallery in the list shows its ID number. Use that number in the ids part of the shortcode to show the right gallery.
Can I add a NextGEN gallery in Elementor?
Yes. Copy the NextGEN shortcode for your gallery and paste it into Elementor's Shortcode widget. Preview the page, because the editor may not show the full gallery layout.
Why does my NextGEN gallery show in the editor but not on the live page?
The live page is probably served from cache, or a script optimization setting is blocking the gallery scripts. Clear every cache layer and test with JavaScript delay and combine options turned off.
Can I use images from the Media Library in NextGEN?
NextGEN keeps its own image storage, but its upload screen includes an option to import images from the Media Library in recent versions. Check the Add Gallery / Images screen for the import tab.
Sources
- Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery WordPress.org
- Adding Galleries to a Page or Post Imagely
- Gallery block WordPress.org Documentation
- An alt Decision Tree W3C Web Accessibility Initiative
- Lazy loading MDN Web Docs
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


