我的标题是 kadhal-rojave-roja-2 但 guid id 是http://sample.com/kadhal-rojave-roja-2/。我需要它没有破折号,像这样:
http://sample.com/kadhal rojave roja 2/
怎么做?
这是我的邮政编码:
$new_post = array(
'ID' => '',
'post_author' => $user->ID,
'post_excerpt' => $excerpt,
'post_title' => $post_title,
'post_status' => 'publish',
);
$post_id = wp_insert_post($new_post);