Title: Bug: XMLRPC not inserting post_name
Last modified: August 18, 2016

---

# Bug: XMLRPC not inserting post_name

 *  [garth](https://wordpress.org/support/users/garth/)
 * (@garth)
 * [22 years, 3 months ago](https://wordpress.org/support/topic/bug-xmlrpc-not-inserting-post_name/)
 * Noticed this in 1.0.1, but apparently it is present in the 1.0 code as well, 
   and has not been addressed in the latest nightlies.
    So in xmlrpc.php, the wp_insert_post
   needs to be modified with $post_name = sanitize_title($post_title); and the insert
   query needs to be modified with post_name (post_author, post_date, post_content,
   post_title, post_excerpt, post_category, post_status, post_name) VALUES(‘$post_author’,’
   $post_date’,’$post_content’,’$post_title’, ‘$post_excerpt’,’$post_cat’, ‘$post_status’,’
   $post_name’)”; I noticed this when using Bloggar to add a post to my blog and
   the dashed title wasn’t showing up in the url.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Cena (a11n)](https://wordpress.org/support/users/cena/)
 * (@cena)
 * [22 years, 3 months ago](https://wordpress.org/support/topic/bug-xmlrpc-not-inserting-post_name/#post-39709)
 * Have you tried the CVS? Dougal committed a bunch of fixes to XMLRPC last night.
 *  Thread Starter [garth](https://wordpress.org/support/users/garth/)
 * (@garth)
 * [22 years, 3 months ago](https://wordpress.org/support/topic/bug-xmlrpc-not-inserting-post_name/#post-39794)
 * no, cvs does not show these fixes.
 *  [Dougal Campbell](https://wordpress.org/support/users/dougal/)
 * (@dougal)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/bug-xmlrpc-not-inserting-post_name/#post-39974)
 * Good catch. Patched and committed.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Bug: XMLRPC not inserting post_name’ is closed to new replies.

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 3 replies
 * 3 participants
 * Last reply from: [Dougal Campbell](https://wordpress.org/support/users/dougal/)
 * Last activity: [22 years, 2 months ago](https://wordpress.org/support/topic/bug-xmlrpc-not-inserting-post_name/#post-39974)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
