Title: Content breaking wp_insert_post
Last modified: August 19, 2016

---

# Content breaking wp_insert_post

 *  [kewalter](https://wordpress.org/support/users/kewalter/)
 * (@kewalter)
 * [15 years ago](https://wordpress.org/support/topic/content-breaking-wp_insert_post/)
 * I’m using wp_insert_post to pull in old news stories after converting a site 
   to WP. When pulling the content into post_content it seems some characters will
   break it causing the content to cut off and stop at that character. One such 
   character I’ve confirmed is — m dash. I’ve tried adding $wpdb->escape($content),
   but it is still cutting it off.

Viewing 1 replies (of 1 total)

 *  [Kevin](https://wordpress.org/support/users/st8ofmindz79/)
 * (@st8ofmindz79)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/content-breaking-wp_insert_post/#post-1978138)
 * [@kewalter](https://wordpress.org/support/users/kewalter/) Just in case you found
   some fixes…I’m having the same problem (except I’m using insert not wp_insert_post).
   It seems to randomly (anything I don’t understand must be random…right?!) cutting
   off content. Thanks in advance.

Viewing 1 replies (of 1 total)

The topic ‘Content breaking wp_insert_post’ is closed to new replies.

## Tags

 * [$wpdb->escape()](https://wordpress.org/support/topic-tag/wpdb-escape/)
 * [dash](https://wordpress.org/support/topic-tag/dash/)
 * [post_content](https://wordpress.org/support/topic-tag/post_content/)
 * [truncate](https://wordpress.org/support/topic-tag/truncate/)
 * [wp_insert_post](https://wordpress.org/support/topic-tag/wp_insert_post/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Kevin](https://wordpress.org/support/users/st8ofmindz79/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/content-breaking-wp_insert_post/#post-1978138)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
