Tags
slug, Update post/page slug, Update post/page slug with updating post/page title on the fly, wordpress
In WordPress, when one publishes a new post/page, the slug of that post/page sanitizes the post title and creates the slug.
For example: if the new post/page title is “What A Beautiful Morning” then the slug would be “what-a-beautiful-morning” which seems very relevant,
but the problem/annoyance is when we try to edit the post/page title and the slug doesn’t change. For example if we for some reason change the same above post/page title to “What A Beautiful Evening” and update, we would see the slug would still be the same old “what-a-beautiful-morning” which is irrelevant now. Continue reading