I was using NextGen Gallery for quite some time here on my blog, and it was all going well until WordPress introduced its own gallery shortcode, custom post types and more, which NextGen never adapted to. After migrating the blog a couple of times I was tired of all the conflicts, so I stopped using galleries, disable the plugin and lived happily even after, until…
Until Jetpack Carousel came along and because it’s so cool an sexy, it made me wanna use galleries again, so I (finally) decided to write a script to migrate my old NextGen Galleries to native WordPress galleries, so they can be used with Jetpack Carousel, or any other carousel or lightbox plugins, which:
- Don’t create their own shortcode
- Don’t create their own file structure
- Don’t create their own database tables
Unfortunately NextGen Gallery does all the above, making it quite tricky to escape, or “lock yourself out.” My script started as a simple Gist on GitHub, but finally made it into its own repo, which I called Escape NextGen Gallery.
It’s far from a complete migration plugin, but it worked for moving my galleries over, and finally getting rid of the database tables and file structure I always hated. Your setup might differ from mine, so you’ll probably have to fine-tune that script, and if you do, don’t hesitate to submit a pull request or fork if you wish.