Missing field “description” for Recipes
-
Hi, after I update the Yoast plugin from 17.5 to 17.8
I get a warning in the google search console “Missing field “description” for Recipes”I already set the Recipe type to the custom category in function.php
add_filter('wpseo_schema_article', function($data) { if (has_category(array(32,40), $post)) { $data['@type'] = "Recipe"; class_exists('WPSEO_Frontend') && $data['description'] = wp_strip_all_tags(WPSEO_Frontend::get_instance()->metadesc(false), true); unset($data['articleSection']); } }
Rich Results Test: https://search.google.com/test/rich-results/result/r%2Frecipes?id=v6zEL2MwMBqEJtRjM3sHwg
tested page: https://www.tasvirezendegi.com/?p=198208
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Missing field “description” for Recipes’ is closed to new replies.