I am trying to implement form to post, which will update this post with shop details.
This form is of relation type.
So I pasted this:
$options = array(
'post_id' => get_the_ID(),
'field_groups' => array( 37 ), // Grupy z ACFa
'form' => true, // set this to false to prevent the <form> tag from being created
'form_attributes' => array( // attributes will be added to the form element
'id' => 'post',
'class' => '',
'action' => '',
'method' => 'post',
'return' => add_query_arg( 'updated', 'true', get_permalink() ), // return url
'html_before_fields' => '', // html inside form before fields
'html_after_fields' => '', // html inside form after fields
'submit_value' => 'Zapisz', // value for submit field
//'updated_message' => '<h4 class="alert alert-success">Zapisano</h4>', // Potwierdzenie.
'field_el' => 'div',
acf_form( $options ); */?>
And it almost works, almost because it also deletes my posts title.
So shop is added to the post, but title is being deleted.