Image field missing in the recipe

#31971
  • Resolved Marta Kieser
    Rank Math free

    Hi,

    today I have run the Structured Data test to check if Googles sees the snippets I added to the following recipe on my blog: https://cooking-the-world.com/german-green-bean-soup-traditional-recipe/
    The test showed an error “A value for the image field is required”, however, there is no image field on the WordPress backend.
    I tried adding:
    add_action(‘rank_math/json_ld’,function($data, $jsonld){
    $data[‘Organization’][‘Image’] = $data[‘Organization’][‘logo’];
    unset($data[‘Organization’][‘logo’]);
    return $data;
    },99,2);
    to function.php and clearing the cache.
    I also change the “Organisation” to “Person” but that also didn’t help.

    Is there anything else I could do to make the image field appear so I don’t get those errors?

    Regards,
    Marta Kieser

Viewing 5 replies - 1 through 5 (of 5 total)
  • Todd
    Rank Math free

    Hi Marta,

    Thanks for getting in touch with me.

    Please add a featured image to your blog post.

    That image will then be used as the image for the recipe Schema automatically.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hi Todd,

    thank you very much for your replay. I always add featured images to my posts, Schema for some reason does not recognize it. Do you have any other ideas about why that doesn’t work?

    Regards,
    Marta

    Todd
    Rank Math free

    Hi Marta,

    It appears to me you have duplicate recipe Schema on your website.

    The one where you are getting the missing image issue is not from Rank Math but rather some other plugin you might be using.

    Please check by disabling all your plugins and re-enable them one by one until you find the problematic one:
    https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fcooking-the-world.com%2Fgerman-green-bean-soup-traditional-recipe%2F

    null

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thanks Todd so much! That makes sense!
    Have a wonderful day.

    Todd
    Rank Math free

    Hi Marta,

    I am so glad to be of help. We are always here if you need us in the future.

    Hey, if it isn’t too much to ask for – would you mind leaving us a review here?

    https://s.rankmath.com/reviewrm

    It only takes a couple of minutes but helps us tremendously.

    It would mean so much to us.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Image field missing in the recipe’ is closed to new replies.