Title: tefon's Replies | WordPress.org

---

# tefon

  [  ](https://wordpress.org/support/users/tefon/)

 *   [Profile](https://wordpress.org/support/users/tefon/)
 *   [Topics Started](https://wordpress.org/support/users/tefon/topics/)
 *   [Replies Created](https://wordpress.org/support/users/tefon/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/tefon/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/tefon/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/tefon/engagements/)
 *   [Favorites](https://wordpress.org/support/users/tefon/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] Request Assistance Regarding ACF Records](https://wordpress.org/support/topic/request-assistance-regarding-acf-records/)
 *  Thread Starter [tefon](https://wordpress.org/support/users/tefon/)
 * (@tefon)
 * [10 months, 4 weeks ago](https://wordpress.org/support/topic/request-assistance-regarding-acf-records/#post-18599278)
 * Hello,
 * In the code below, I want to automatically retrieve the **“$field_name”** field
   I’ve highlighted in code bold. How can I do this? I’m not sure, but I think this
   field is already in **“$_POST[‘acf’],”** thanks.
 * Have a nice day.
 *     ```wp-block-code
       function tef1011( $post_id = 0, $values = null, $field = true ) {    if ( ! empty( $_POST['acf'] ) ) {        acf_update_values( $_POST['acf'], $post_id );    }    // Replace 'speciality' with your field name    $term_id = intval(filter_var($post_id, FILTER_SANITIZE_NUMBER_INT));    $field_name = 'speciality';    // Get the raw field value (this will be an array for multiple select)    $values = get_field($field_name, $post_id, false);    // Insert each value as its own row    foreach ($values as $value) {                add_metadata('term', $term_id, $field_name, $value);      }}add_action('acf/save_post', 'tef1011', 20);
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tag, Category, and Taxonomy Manager - Autotagger Automatically Add Terms] Selecting multiple taxonomies within a taxonomy](https://wordpress.org/support/topic/selecting-multiple-taxonomies-within-a-taxonomy/)
 *  Thread Starter [tefon](https://wordpress.org/support/users/tefon/)
 * (@tefon)
 * [11 months ago](https://wordpress.org/support/topic/selecting-multiple-taxonomies-within-a-taxonomy/#post-18596019)
 * The answer came:
 * “Hi Thanks for getting in touch.
 * We’re happy to help, but this is the pre-sales channel, not technical support.”
 * Can you help from here?

Viewing 2 replies - 1 through 2 (of 2 total)