wp_insert_post always returning "1" as value.
-
I can successfully create wp posts but when i do $id = wp_insert_post($post) it always returns 1. Why is this happening? I need the post ID. It used to work before! I haven’t more information to give :\
- The topic ‘wp_insert_post always returning "1" as value.’ is closed to new replies.