is it possible to regenerate the slugs programmatically after changing the titles of the post?
The girl that updated the title of more than 200 posts just "forgot" to update the slug too, so i was wondering if there was some sort of plugin that regenerates the slugs from the new titles
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
|
|||
|
|
|
Yes, it is possible. Sample code, has to be tested and refined:
I just made this up, there are probably some errors and egde cases, but it should give you an idea. Also, this may take a while, so it could be useful to split the update into smaller chunks. |
|||
|
|