Is a known (SEO) issue that if You save a draft post without title, the post_name or slug is immediately saved with the post id.
As of April 2026, Rewrite slug before publishing a post is a WordPress slugs plugin with 10 active installations and a 3.7/5 rating from 3 reviews. It has been downloaded 1.5K+ times in total. Requires WordPress 4.1+ and PHP false+. Available on WordPress.org since 2016. Last updated 9 years ago — may have compatibility concerns. Top alternative: Cyr-To-Lat.
Is a known (SEO) issue that if You save a draft post without title, the post_name or slug is immediately saved with the post id.
Later, when You finish your post and put some title, the slug doesn’t change; neither also when your slug preference is %postname%.
So, what if we include the following function to rewrite the slug before publishing the post?
| WordPress | 4.1+ requiredTested up to 4.5.33 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.