Support

Account

Home Forums Front-end Issues On wp_insert_post(); why $key is assigned? Reply To: On wp_insert_post(); why $key is assigned?

  • OK I solved it by updating select field using value directly instead of using as array.

    $field_key = "field_5a70533ef099f";
    $value = "req-pending";
    update_field( $field_key, $value, $post );

    Now it works fine.