-
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
The ticket ‘Image field missing in the recipe’ is closed to new replies.