Let the Wordpress auto-create slugs from titles instead of using just the post-id

This commit is contained in:
savvasha
2019-01-29 20:59:55 +02:00
parent b5dbf613d6
commit af2c537e4c

View File

@@ -214,7 +214,7 @@ if ( class_exists( 'WP_Importer' ) ) {
$post = array(
'ID' => $id,
'post_title' => $title,
'post_name' => $id,
'post_name' => '',
);
wp_update_post( $post );