-
Go to plugin editor (wordpress menu > plugins > edit plugins)
-
Select "Cooked" plugin from left side on page ("Select plugin to edit dropdown)
- Find "class.cooked-seo.php" file in plugin files list under "includes" folder
- Finally add these rows in to "$schema_array" variable in "schema_values" function. (php file added)
All of these optional tags for Google but i think "keywords" and "video" tags are important.
'keywords' => ( isset($recipe['title']) ? $recipe['title'] : '' )
'recipeCuisine' => ''
'aggregateRating' => ''
'video' => array (
'@type' => 'VideoObject',
'name' => ( isset($recipe['title']) ? $recipe['title'] : '' ),
'description' => ( isset($recipe['seo_description']) && $recipe['seo_description'] ? $recipe['seo_description'] : ( isset($recipe['excerpt']) && $recipe['excerpt'] ? $recipe['excerpt'] : ( isset($recipe['title']) ? $recipe['title'] : '' ) ) ),
'contentUrl' => ( isset($recipe['gallery']['video_url']) && $recipe['gallery']['video_url'] ? $recipe['gallery']['video_url'] : '' ),
'thumbnailUrl' => $recipe_thumbnail,
'uploadDate' => get_the_date( 'Y-m-d', $recipe['id'] ),
)