Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/kovshenin/escape-ngg/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
This plugin will scan through all your posts and pages for the [nggallery] shortcode.
It will loop through all images associated with that gallery and recreate them as native WordPress attachments instead. Finally it will replace the [nggallery] shortcode with the [gallery] shortcode native to WordPress.
Instructions
- Backup!
- Activate the plugin and browse to yourdomain.com/wp-admin/?escape_ngg_please=1
- When you're done you can delete the gallery dir, and the wpngg* tables in your database. Keep the backups though.
Limitations
- doesn't work with shortcodes other than [nggallery]
- doesn't work when more than one gallery on page
Notes
@uses media_sideload_image to recreate your attachment posts.
Compatible with wp-cli.