Regenerate Slugs From Title of Posts
Yes, it is possible. Sample code, has to be tested and refined: // get all posts $posts = get_posts( array ( ‘numberposts’ => -1 ) ); foreach ( $posts as $post ) { // check the slug and run an update if necessary $new_slug = sanitize_title( $post->post_title ); if ( $post->post_name != $new_slug ) { … Read more