I built a plugin for wordpress with custom post types and somewhere along the line I realized that I had to rebuild the way slugs are generated. Originally, I had the cpt making default slugs like new-post-1, new-post-2, etc. I realized this was silly and rewrote the naming convention to create a slug from the post title like it should be. The only issue I have now is that I want to have all the old posts I entered into wordpress use the new naming convention. Is there a function or a way to tell wordpress to rebuild/regenerate the slugs for a particular custom post type.

I found this plugin: http://wordpress.org/plugins/re-slug/

But.. it does not work for cpts

Thanks for the help.

Read more here: Reslug a Custom Post Type


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: