[wp-hackers] Post ID and New Post Problem
Rafael Ehlers
rafaehlers at gmail.com
Thu Jul 12 22:21:16 UTC 2012
http://pastebin.com/rWjzJCHW
On Thu, Jul 12, 2012 at 7:16 PM, Sinan <sinan at sinanisler.com> wrote:
> Hello,
>
> As you know with wp_insert_post() function we can add new posts
>
> we cant add custom field because add_post_meta() function need Post ID
>
> But our problem start here with wp_insert_post function creating new post
> we dont have a Post ID
>
> so we cant add same time new post and custom field values. We can use only
> add_post_meta function for existed posts.
>
> I need a solution for this. I need create post and add custom fields same
> time.
>
> By the way I see same problem for attachments.
>
>
> I hope we can find a solution for this.
>
>
> --
> Sinan İŞLER
> sinanisler.com <http://www.sinanisler.com>
> fb.com/sinanisler
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list