• Resolved bridge2web

    (@bridge2web)


    PHP Warning: Array to string conversion in /wp-content/plugins/advanced-custom-fields/includes/api/api-template.php on line 74

    PHP 8.1

    Fix:

    function the_field( $selector, $post_id = false, $format_value = true ) {
    $value = get_field( $selector, $post_id, $format_value );
    echo is_array( $value ) ? implode( ', ', $value ) : $value;
    }
Viewing 1 replies (of 1 total)
  • Hi @bridge2web

    ACF Support Team here. This forum is generally used by ACF users to help each other out. 

    However, we would love to continue investigating and troubleshooting this issue, please can you create a ticket using our ?support form and we can look into it further.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Warning: Array to string conversion in /includes/api/api-template.php’ is closed to new replies.