Home Forums ACF PRO Append and Prepend values Reply To: Append and Prepend values

  • You can’t just implode the array, it consists of an array of term objects and not just the name of the terms. You must loop through it and pluck out the term names, or you can use a WP function that does this

    $field_name = "job_field_area";
    $field = get_field_object($field_name);
    if ($field) {
        <li class="list-item">
          <div lass="list-content">
            <h3><?php echo $field['label']; ?></h3>
            echo implode(', ', wp_list_pluck($field['value'], 'name'));