The Slug4apig plugin allows WP users to edit the SEO friendly URL (aka slug) for the autogenerated attachment posts created by the built WP gallery.
As of April 2026, Slug for attached posts by image galleries is a WordPress seo plugin with 20 active installations and a 0/5 rating0. It has been downloaded 3.2K+ times in total. Requires WordPress 2.5+ and PHP false+. Available on WordPress.org since 2011. Last updated 15 years ago — may have compatibility concerns. Top alternative: Yoast SEO – Advanced SEO with real-time….
Slug4apig (Slug for attached posts from image galleries) is probably the simplest plugin ever seen, though of
imperative need for the WordPress community.
This plugin just adds a field to each image inserted through the WordPress built-in gallery interface. As easy as you edit
the name, description, etc. for each image, with Slug4apig you will be able to edit the friendly URL (aka slug)
and set the desired value.
By default, the WordPress built-in gallery will set the attachment post’s slug to the name of the image you inserted in
the gallery (minus .extension). This is a rather restrictive approach, as your images may have sequencial names
assigned automatically by the photo camera, like “S4100001.JPG”.
In the previous example, an autocreated attachment post would be cr…
| WordPress | 2.5+ requiredTested up to 3.0.5 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.