Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.45 KB

README.md

File metadata and controls

35 lines (27 loc) · 1.45 KB

Wordpress Cooked Plugin SEO Optimization Fix

  1. Go to plugin editor (wordpress menu > plugins > edit plugins)

  2. Select "Cooked" plugin from left side on page ("Select plugin to edit dropdown)

  1. Find "class.cooked-seo.php" file in plugin files list under "includes" folder

  1. 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'] ),
			)