How to update or recreate WordPress post_name slugs based on a new post_title?

WordPress wp_posts table that is stored in your WordPress MySQL database has post_title and post_name columns. I needed to recreate post_name column for all posts based on updated post title values. I will name 2 solutions for the problem that I found: 1. A PHP script from here http://pario.no/wp-content/uploads/2010/11/regenerate_post_slugs.txt I will just copy/paste the code…

Tagged