Hello,
I get the following error message on the website https://optik-hoeffler.de/produkte/brillen/damenbrillen/ at the bottom: Notice: Trying to access array offset on value of type bool in /www/htdocs/w01ddc27/optik/ wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php on line 499
The code shows the following:
`// parent loop
if( $new_parent_loop ) {
$field = get_field_object( $selector, $post_id, false );
$value = acf_extract_var( $field, ‘value’ );
$name = $field[‘name’];
The website uses PHP 7.4. Can someone help me what I can do here so that the error is not displayed?
Thanks!
Greetings,
Christian
$field = get_field_object( $selector, $post_id, false );
is returning false. This means that either the field does not exist or you are trying to use an ACF function before ACF has initialized.