Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Blogging & content · Guide

How to Add NextGEN Gallery in WordPress Page (Step by Step)

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.

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:

  1. Install and activate the plugin
  2. Create a gallery and upload images to it
  3. Insert the gallery into a page with the block, shortcode or classic editor button
MethodBest forWhat you do
NextGEN Gallery blockBlock editor (Gutenberg)Add the block, pick a gallery in the insert window
ShortcodePage builders, widgets, custom layoutsPaste a shortcode into a Shortcode block or text area
Classic editor buttonSites using the Classic Editor pluginClick the NextGEN button above the editor

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.

Open NextGEN Gallery > Add Gallery / Images, create a new gallery name, choose your image files, and start the upload.

Step by step:

  1. Go to NextGEN Gallery > Add Gallery / Images
  2. In the gallery dropdown, choose to create a new gallery and type a name, such as Office Opening 2026
  3. Click to select files, or drag and drop images into the upload area
  4. Start the upload and wait for every file to finish
  5. 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.

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.

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:

  1. Go to Pages and open the page in the editor
  2. Click the plus icon where you want the gallery
  3. Search for NextGEN and choose the NextGEN Gallery block
  4. Click the button in the block to add or select a gallery
  5. In the insert window, choose galleries as the source and select your gallery
  6. Pick a display type, such as thumbnails or a slideshow
  7. Adjust display settings if you want, then click the insert button
  8. 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 typeWhat visitors seeGood for
Basic thumbnailsA grid of small images that open in a lightboxMost photo galleries
Basic slideshowOne large image at a time that rotatesHero areas, featured shots
Basic image browserOne image with next and previous linksStep-by-step or story photos
Basic tag cloudTags that filter imagesLarge tagged collections
AlbumsCover images that open individual galleriesMany 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.

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.

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.

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.

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:

  1. Confirm you clicked Update after inserting the gallery
  2. Make sure the gallery has images that are not excluded
  3. Clear your cache with our guide on how to clear cache in WordPress
  4. Turn off JavaScript delay or combine settings for a moment and test again
  5. 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.

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.

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

  1. Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery WordPress.org
  2. Adding Galleries to a Page or Post Imagely
  3. Gallery block WordPress.org Documentation
  4. An alt Decision Tree W3C Web Accessibility Initiative
  5. 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.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.