• I am writting plugin for displaying the images which are “connected” to the post/page. It is 99,9% done, the only what i found is a problem, how to mannage the connection between posts and content:
    When you upload the image, it makes the row in the sql table as a normal post, with predefined post_parent as id for the post. The problem is, that (probably) there is no way how to clear this value or change the value, the only what you can do is to delete the image.
    Other thing is that it would be nice, if i could have more id’s in the parent, but this is probably not possible.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Not sure what you mean, why would you need to change the post_parent value?

    Thread Starter thomask

    (@thomask)

    because the plugin shows all images connected to each article and this connection is done trough post_parent

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘setting and clearing post_parent for uploaded content?’ is closed to new replies.