tags:

views:

52

answers:

1

How to insert post meta values while adding a post? I am using wp_insert_post function to insert the post. For using the "add_post_meta" function, we need to specify the post ID. How can I add the values at the time of inserting post? Is there any way to do this!?

regards - dj

+1  A: 

Hi,

Sorry for the confusion.I found the solution myself. We need to use the Post ID that returns by the function wp_insert_post. It returns the post ID value for the successful posting.

regards -dj

Dijo David