I'm encountering a problem when adding posts via the wp_insert_post() function:
Each post starts with an image. Each image has some style, src, alt and title attribute and here occurs some strange behaviour: When adding the post to wordpress using wp_insert_post() the title attribute of the img tag won't be saved to the database. The alt attribute, which contains the same value as the title is saved properly though.
If I edit the post in the wordpress editor, add the title manually for one post and then update the rest of the posts using wp_update_post() all other title attributes are properly saved.
Anyone any ideas why this behaviour occurs and how to fix?
Thanks in advance & best regards,