Support

Account

Home Forums Front-end Issues Adding a post from the frontend Reply To: Adding a post from the frontend

  • Ok. thanks.

    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