Switch a NextGEN Gallery Between Thumbnails and a Slideshow with AI
A NextGEN gallery switched to thumbnails, a slideshow or one photo at a time, with the pages it changes named first.
Prerequisites
A site connected to WPVibe running NextGEN Gallery 4.6.0 or newer (free) on WordPress 6.9 or newer, with an administrator account. Allow AI to edit galleries is turned on in your WordPress admin under Imagely, Settings, AI & MCP.
My WordPress site uses NextGEN Gallery. Show my [gallery name] gallery as [a slideshow, a grid of thumbnails, or one photo at a time]. 1. Run discover_abilities with category nextgen-gallery. If the NextGEN Gallery abilities are not there, stop and tell me to install the free NextGEN Gallery plugin or update it to 4.6.0 or newer (it needs WordPress 6.9 or newer). Then run nextgen-gallery/describe-gallery-schema. If writes_enabled is false, stop and tell me to turn on Allow AI to edit galleries in my WordPress admin under Imagely, Settings, AI & MCP, then ask again. Never change that setting yourself. 2. Run nextgen-gallery/list-galleries with search set to one distinctive word from the gallery name (it matches the text as one phrase), per_page 50 and max_length 100000 (if a response says it was cut, lower per_page and page through). If several match, show them with their image counts and ask which one. If none match, try another word, then run it without search and show me the newest 50; if total_pages is more than 1, ask whether to read the next page. Note its display_type and image_count. 3. From describe-gallery-schema, list display_types by title. The free ones: NextGEN Basic Thumbnails is a grid of thumbnails that open in a lightbox; NextGEN Basic Slideshow shows one photo at a time and moves on by itself; NextGEN Basic ImageBrowser shows one photo with its alt text and previous and next links. Never choose NextGEN Basic TagCloud: it shows the site's image tags, not the gallery's photos. Others come from NextGEN Pro; describe them only by their title. Pick the one that matches what I asked for, or ask me if more than one could. Use its name (such as photocrati-nextgen_basic_slideshow), not its title, in the next steps. If the gallery already uses it, tell me and stop. 4. Find where the gallery is shown: run rest_api GET /wp/v2/pages and GET /wp/v2/posts, each four times, with search imagely, ngg, slideshow and imagebrowser, status publish,draft,private,pending,future, per_page 100 and _fields id (if a full page of 100 comes back, read the next page, and so on; an answer of rest_post_invalid_page_number means there are no more). Put the ids together without repeats, keeping pages and posts apart. If there are more than 40, tell me how many and ask before reading them; if I say no, tell me that what you report about where galleries are shown is incomplete. Read their content 10 at a time with rest_api GET /wp/v2/pages (or /wp/v2/posts) with include set to those ids, per_page 10, status publish,draft,private,pending,future, context edit, _fields id,title,status,link,content.raw and max_length 100000. If a response says it was cut (truncated), read those ids fewer at a time; if a post is still cut on its own, read it with rest_api GET /wp/v2/pages/ID (or posts) with context edit, _fields id,status,content.raw and max_length 4000000. Searches also match ordinary words, so a post may show no gallery at all. NextGEN hides a private gallery's client page from every search, so for a gallery whose page_id (from list-galleries or get-gallery) is not 0, also read that page alone with rest_api GET /wp/v2/pages/PAGE_ID with context edit and _fields id,status,link,content.raw, and count it like the others. A post shows the gallery when its content has the imagely shortcode with id set to GALLERY_ID (the Imagely block saves this shortcode inside it), the nggallery, slideshow, nggslideshow, imagebrowser or nggimagebrowser shortcode with id GALLERY_ID, or the ngg or ngg_images shortcode with GALLERY_ID among its gallery_ids or galleries, or with src or source set to galleries and GALLERY_ID among its ids or container_ids (in double, single or no quotes; ids separated by commas or a vertical bar). This does not see galleries inside an album, on other content types such as products or courses, in synced patterns, placed with a page builder widget, a theme template or a sidebar widget, by the random or recent shortcodes, by an ngg shortcode with only an id (a saved display), or by an old Attach to Post placeholder image. Tell me what this search can't see. Sort what you found: spots with the imagely shortcode change at once; spots with any of the other shortcodes set their own display, or show nothing, and will not change. Show me both lists, the current and the new display, and tell me published pages change as soon as it is saved. Wait for my yes. 5. Run nextgen-gallery/update-gallery with the id and display_type only. Then run nextgen-gallery/get-gallery and confirm display_type reads back as sent. 6. Give me the sentence to undo it, with the real values: Set the NextGEN gallery GALLERY_ID back to display type OLD_DISPLAY_TYPE using nextgen-gallery/update-gallery.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Switch a NextGEN Gallery Between Thumbnails and a Slideshow with AI” recipe from the WPVibe cookbook on my connected site.
A grid of thumbnails suits a portfolio; a slideshow suits a hero section or a short story in photos. Changing it means finding the gallery, knowing which of NextGEN’s display names does what, and checking every page that shows it.
Say how the gallery should look. The AI lists the displays your site has, explains each in a line, and shows you where the gallery is placed and which of those spots will change. After your yes it switches the display, reads it back, and gives you the sentence that switches it back.
The change shows at once on every page that places the gallery with the Imagely block or the imagely shortcode. Pages that use the NextGEN Gallery (Legacy) block or NextGEN’s older shortcodes, such as nggallery or slideshow, set their own display and stay as they are. Settings for each display, such as thumbnail size or slideshow speed, are in the gallery’s edit screen. To place a gallery on a new page, use this recipe.
Outcome
The gallery uses the display you chose wherever the Imagely block or shortcode shows it, and you have the sentence that switches it back.