When inserting a new post, you must omit or leave the ID
parameter empty, or the post will not be inserted. You can only set the ID
if you are updating an existing post with that ID.
See wp_insert_post
in Codex for more information.
When inserting a new post, you must omit or leave the ID
parameter empty, or the post will not be inserted. You can only set the ID
if you are updating an existing post with that ID.
See wp_insert_post
in Codex for more information.