Support » Fixing WordPress » 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)
  • @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.