I have custom_field offer_category – this field isto be taxonomy
I have page add-post.php with acf_form_head();
and I have the code below:
<?php acf_form(array( 'post_id' => 'new_post', 'uploader' => 'basic', 'return' => '%post_url%', 'updated_message' => 'Post saved!', 'new_post' => array( 'post_type' => 'offer', 'tax_input' => array('typ' => array($_POST['acf']['field_ID_RELATION_TAX_FIELD'])), 'post_status' => 'draft', ), 'submit_value' => 'Add' )); ?>
and whole post is being saved but is not affiliated with my custom taxonomy
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 21, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.