attachment_id error in header.php
-
Hello,
I use Lovecraft theme for a running event website.
Since I’ve upgraded to wordpress 5.8.3 on my synology NAS (5.8.2 before), I’ve a error in every page :Notice: Trying to get property 'attachment_id' of non-object in xxx/wordpress/wp-content/themes/lovecraft/header.php on line 149
The line 149 is:
$header_image_alt = get_post_meta( $header_image_data->attachment_id, '_wp_attachment_image_alt', true );
I don’t understand where is the problem with this ‘attachment_id’ ?
Thanks for your help.Matthieu
The page I need help with: [log in to see the link]
- The topic ‘attachment_id error in header.php’ is closed to new replies.