WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What kind of transformation does the post_content go thru when wp_insert_post inserts a post_content into wp_posts programmatically?

I'd like to be aware of this before I process 50000 recs into wp_posts?

share|improve this question

In reading through the function, I do not see anything that inherently transforms it. I'm relatively certain that there are no transforms (except maybe autop) until the display of the data. I would recommend trying one or two posts, making sure that it's going to insert correctly, and then going all out.

Also, depending on how things are structured, you may run into a pretty severe issue with Apperance->Menus if you use that many posts, just as a heads up.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.