Updating post_parent by id (many times)
A post can only ever have one parent post. I’m certain you can still accomplish what you want using post meta, though. If you give us a better explanation of what you’re trying to do we might be able to help. For example, function updating_parent() { // your code to get posts foreach ( $my_posts … Read more