• heya all.

    i’m writing a plugin, and need to be able to add an attachment to a post, while in the ‘write post’ screen. for that, i need a valid post_ID. however, if the user tries to add an attachment before the first draft has been saved, all i have is a temp_ID.

    how, precisely, can i kick off the mechanism to save a draft, and generate a post_ID? i assume this will be a javascript function?

Viewing 1 replies (of 1 total)
  • he there!

    did you manage to solve your problem already? I am facing more or less the same problem. I am trying to get a better and more precise way to add images and videos – it only should be possible in one way – and I need the ID also before adding the images or videos.

    maybe you can help me already out

    thanks
    georg

Viewing 1 replies (of 1 total)
  • The topic ‘post_ID, temp_ID, and drafts’ is closed to new replies.