[wp-hackers] Post ID and New Post Problem
sinan at sinanisler.com
Fri Jul 13 01:04:36 UTC 2012
But this is not what I seek.
And this code not work :) for 2 step maybe but 1 step adding post and meta
fields this code not works.
I think a way for solution but I'm looking better solution. My solution is;
As you know when we write a post-page wordpress panel page automatic save
the draft post and create a post id for that. Any way this is the wordpress
wp-admin way :)
We need new way. If there is it...
2012/7/13 Rafael Ehlers <rafaehlers at gmail.com>
> 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
> > 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
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers