post_id keeps changing
-
I tried to create a form for posting outside the admin panel with some pre-defined fields for users to input. Once the user inputted, inputs post to a processform so that I can manipulate the post_content, add post meta and etc…
My problem is, in order to insert the custom metas, insert the img uploaded to the post, i have to first get the post ID by wp_insert_post, and then using wp_get_img_src and add_post_meta to manipulate the content and then update the post content by using the wp_insert_post again. I found out that img does work but the post_meta will be brought forward to the revised post.
Anyone can help/suggest a way that what I could do?
Thanks,
Adam
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘post_id keeps changing’ is closed to new replies.