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.
- The topic ‘Content breaking wp_insert_post’ is closed to new replies.