How Can We Help?

Search for answers or browse our knowledge base.

< All Topics

How To Generate Shortcodes with NextGEN Gallery

Do you prefer to insert your galleries using shortcodes?

NextGEN Gallery now provides an easy way to build out shortcodes. You can apply these shortcodes to widgets, posts, and pages to display your galleries.  No more piecing together the shortcode by hand!

You can follow the steps below to generate the shortcode for your gallery from our Add Gallery window block:

Note: If you prefer to use the Classic Editor, as of WordPress v5.0 you will need to install the Classic Editor plugin.

First, you can access the Add Gallery window by hovering over the (+) symbol and selecting the NextGEN Gallery block.

NextGEN Gallery block in the block editor

Insert Gallery and Copy Shortcode

After you select to insert your gallery you'll see the gallery placeholder. In the top-right corner of the text edit area, next to the Publish or Update button will be a 3-dot menu dropdown. In that dropdown menu will be two editor options: Visual and Code.

Click on Code Editor and you can copy the shortcode that gets generated.

Code Editor option in the sidebar menu

You're done! Now you are ready to use the gallery shortcode in any widget, post, or page.

Table of Contents
Close Menu