In my current project, I create a new post via the public front end (contact form) and I would like to add to the newly created post reference to existing posts (foreign key).
For that I am using a Post Object in a Repeater Field (we need to be able to manage these foreign keys from the WordPress admin panel). But I can’t get it to work. What kind of object am I supposed to pass to the add_row function ? Neither a WP_Post object nor a post ID seems to work. But the code works if I am using a simple text field.