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!