Make Permalinks have a custom format?
Please see below. This will solve your problem for all future posts that you publish. I have tried this code. But to be on safer side, please backup your DB before you try or tray on staging. function custom_unique_post_slug( $slug, $post_ID, $post_status, $post_type ) { $post = get_post($post_ID); /* Set a flag to know if … Read more