View Categories

Yoast SEO

The Cooked plugin now includes dedicated support for Yoast SEO, allowing for dynamic meta titles and descriptions on the Browse Recipe page. This feature is designed to update metadata based on the applied taxonomy filters (e.g., category, cuisine, diet), enhancing SEO and reducing the risk of duplicate content issues for filtered recipe pages on search engines like Google.

Available Variables #

The following custom Cooked variables are available in Yoast SEO. These variables reflect the active filter settings, allowing for dynamic titles and descriptions:

  • %%cooked_recipe_category%% – Displays the category that is selected in the filter.
  • %%cooked_recipe_cuisine%% – Displays the cuisine type that is selected in the filter (e.g., Italian, Japanese).
  • %%cooked_recipe_cooking_method%% – Displays the cooking method that is selected in the filter (e.g., baking, frying).
  • %%cooked_recipe_diet%% – Displays the recipe restricted diets that is selected in the filter (e.g., vegan, vegetarian).
  • %%cooked_recipe_tags%% – Displays the recipe tag that is selected in the filter.
  • %%cooked_recipe_filters%% – Displays any recipe filter that is selected.

How to Implement #

  1. Navigate to the Browse Recipe Page in your WordPress admin panel.
  2. Go to Yoast SEO’s Title & Meta Settings.
  3. Manually add the Cooked variables to your SEO title, description, or other meta fields.

By using these variables, the metadata on your Browse Recipe page will change based on the active filters, making each filtered view unique to search engines.