Support

Account

Home Forums Front-end Issues Post select value

Unread

Post select value

  • Hi

    I am using <?php acf_form($settings)?> to create new posts from frontend

    'new_post' => array(
        'post_type' => 'my_cpt',
        'tax_input' => array( 
        'my_cpt_category' => array( $_POST['acf']['field_5a903d3132d04'] )
        ), 
    ),

    my_cpt_category is a value from a dropdown select. The issue I have is that each entry get the dropdown select value from the previous entry, says the select value is well send and well registered in form, but the entry is affected to the category send in previous form.

    Submit 1 – Select Cat A => Category = null
    Submit 2 – Select Cat B => Category A
    Submit 3 – Select Cat C => Category B

    I am new to PHP 🙂

    Any help woudd be appreciated

Viewing 1 post (of 1 total)

The topic ‘Post select value’ is closed to new replies.