A cleaner WordPress [gallery] that integrates with multiple Lightbox-type scripts.
As of April 2026, Cleaner Gallery is a WordPress images plugin with 2.0K+ active installations and a 4.8/5 rating from 23 reviews. It has been downloaded 216K+ times in total. Requires WordPress 3.9+ and PHP false+. Available on WordPress.org since 2009. Last updated 8 years ago — may have compatibility concerns. Downloads are down 18% this week. Top alternative: Autoptimize.
This plugin was written to take care of the invalid HTML that WordPress produces when using the [gallery] shortcode.
It does a bit more than that though. It will integrate with many Lightbox-type scripts and allow you to do much cooler things with your galleries. Plus, it has a couple of extra options that you can play around with.
<fig> and <figcaption> elements.aria-describedby attribute to make images + captions more accessible to users with disabilities.This may not be needed as strongly starting from WP 3.9 but still a good choice for larger flexibility if you don’t want to override gallery code.
Clean code and design and does exactly what it says and then more. Also works well with WP Gallery Custom Links and WP Featherlight (lightbox) plugins. Very good stuff! Thanks, Justin.
Excellent!!!!, Don’t look any further.
That says it all… great plug-in
| WordPress | 3.9+ requiredTested up to false |
| PHP | false+ required |
Cleaner_Gallery class, which allows for better code reuse and consolidates all the gallery functionality..gallery-columns-x class..gallery-size-x class.aria-describedby attribute for images with captions for better accessibility.Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.