diff --git a/modules/hero/setup.php b/modules/hero/setup.php index 37c3d4c..66478e1 100644 --- a/modules/hero/setup.php +++ b/modules/hero/setup.php @@ -139,6 +139,7 @@ function x_get_post_types_with_hero() { wp_update_post([ 'ID' => $post_id, 'post_title' => $block_title, + 'post_name' => '', // force new slug ]); } // copy post title to block title if it is not set