Home Plugins rewrite slug before publishing a post
Rewrite slug before publishing a post logo

Rewrite slug before publishing a post

by Dario BF on WordPress.org

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.

(3)

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?

Active installations10+
Weekly downloads
7-30.00%
Version1.0
Last updated6/9/2016
WordPress version4.1
Tested up to4.5.32
Tags
rewriteslugs