Content breaking wp_insert_post (2 posts)

  1. kewalter
    Posted 5 years ago #

    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.

  2. st8ofmindz79
    Posted 5 years ago #

    @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.

Topic Closed

This topic has been closed to new replies.

About this Topic