• Hello @gamerz

    Sorry for reporting what seems to be an old issue but this is what I get in the meta itemprop=”image” (outputed code) :

    <div style="display: none;" itemprop="image" itemscope="" itemtype="https://schema.org/ImageObject">
        <meta itemprop="url" content="">
        <meta itemprop="width" content="">
        <meta itemprop="height" content="">
    </div>

    Testing it with the structured data tool, it seems to be linked to the post thumbnail image. I found it in the code :

    // Post Thumbnail
    $thumbnail = '';
    if ( has_post_thumbnail() ) {
    	$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( null ) );
    }
    $thumbnail = apply_filters( 'wp_postratings_post_thumbnail', $thumbnail, $post_id );
    if ( ! empty( $thumbnail ) ) {
    	$post_meta .= '<div style="display: none;" itemprop="image" itemscope itemtype="https://schema.org/ImageObject">';
    	$post_meta .= '<meta itemprop="url" content="' . $thumbnail[0] . '" />';
    	$post_meta .= '<meta itemprop="width" content="' . $thumbnail[1] . '" />';
    	$post_meta .= '<meta itemprop="height" content="' . $thumbnail[2] . '" />';
    	$post_meta .= '</div>';
    }

    It might come from that part of the code above but I am not sure since I discovered you fixed it in an early release and my file match with your updated version on the Github repo that you advise in here : https://wordpress.org/support/topic/default-image-in-schema/#post-9651768

    My initial guess was to add a line with the site logo but then I realized it was the post’s contextual image that is specified here.

    Can you let me know what to do with it ?
    Thank you

    • This topic was modified 6 years, 10 months ago by rom174.

The topic ‘Rich snippet error. Image field missing. Thumbnail post issue.’ is closed to new replies.