Technical SEO

How to Migrate Recipe Schema When Changing WordPress Themes (Without Losing Rankings)

14 min readJanuary 30, 2024

Danger zone: Changing themes without properly migrating recipe schema can cause you to lose rich results overnight—and tank your traffic by 40%+. Here's how to do it safely.

Why Theme Changes Break Recipe Schema

Many WordPress themes bundle recipe card plugins or inject schema markup directly. When you switch themes, this schema disappears—and Google stops showing your rich results.

Common Theme Change Disasters:

⚠️
Schema Disappears Entirely

Old theme provided schema, new one doesn't—your recipes lose rich results immediately.

⚠️
Duplicate Schema

Both old plugin and new theme inject schema—Google gets confused and drops rankings.

⚠️
Format Incompatibility

Recipe data stored in old plugin's custom fields doesn't transfer to new format.

⚠️
Broken URLs/Permalinks

Theme change alters URL structure—all your rankings lost, backlinks broken.

Pre-Migration Checklist (Do This BEFORE Changing Themes)

Critical: Complete every step in this checklist before switching themes. Skipping steps = potential SEO disaster.

1
Audit Your Current Schema Setup

Understand where your recipe schema is coming from before you break it.

How to Check:
  • • Go to any recipe post
  • • Right-click → View Page Source
  • • Search (Ctrl/Cmd+F) for "application/ld+json"
  • • Note if schema exists and what generates it (plugin comment in code)
2
Document Your Recipe Plugin/System

List every plugin and custom code that handles recipes.

Common Sources:
  • • WP Recipe Maker
  • • Tasty Recipes
  • • WP Ultimate Recipe
  • • Yoast SEO (sometimes adds schema)
  • • Theme-bundled recipe shortcodes
  • • Custom schema in functions.php
3
Full Site Backup (Non-Negotiable)

Create complete backup before any changes. You WILL need this if something breaks.

Backup Checklist:
  • • Database export (phpMyAdmin or backup plugin)
  • • All files via FTP/SFTP (themes, plugins, uploads)
  • • Store backup off-server (Dropbox, Google Drive)
  • • Test restore on staging site (optional but recommended)
4
Export All Recipe Data

Most recipe plugins have export tools. Use them.

Export Methods:
  • • Plugin's built-in export (usually CSV or JSON)
  • • WordPress Tools → Export → Posts (includes recipe custom fields)
  • • Screenshot critical recipes as PDF backup
5
Test Schema on 5-10 Key Recipes

Before migration, verify your most important recipes have valid schema.

Testing Tool:

Use Google Rich Results Test

Note any warnings or errors for comparison post-migration.

The Safe Migration Process (Step-by-Step)

Option 1: Staging Site Migration (Recommended)

Test everything on a staging site before touching your live site. This is the safest method.

Staging Site Workflow:
  1. Create staging site (many hosts offer 1-click staging: WP Engine, Kinsta, SiteGround)
  2. Install and activate new theme on staging
  3. Test 10-20 recipes—do they display correctly?
  4. Check schema on staging URLs with Rich Results Test
  5. Fix any issues (missing schema, broken layouts, etc.)
  6. Once perfect, activate new theme on live site
  7. Immediately retest live URLs for schema validity
  8. Request re-indexing in Google Search Console for all recipe URLs
Success Rate: 95%+ if done correctly. Minimal risk to live site.

Option 2: Live Site Migration (Higher Risk)

Only use this if you don't have staging. Must be done during low-traffic hours.

Live Migration Workflow:
  1. Choose low-traffic time: 2-4 AM your timezone (check Google Analytics)
  2. Enable maintenance mode: Use plugin like "WP Maintenance Mode" to hide site from visitors
  3. Activate new theme: Appearance → Themes → Activate
  4. Immediately test: Visit 5-10 recipe posts, verify layout and schema
  5. Run Rich Results Test: Test key recipes for valid schema
  6. Fix critical issues: You have 30-60 minutes before traffic returns
  7. Disable maintenance mode: Site goes live with new theme
  8. Monitor for 48 hours: Watch Search Console for schema errors
Risk Level: Medium-High. If schema breaks, you lose rich results until fixed.

Common Migration Scenarios & Solutions

Scenario 1: Plugin-to-Plugin Migration

Situation: You're switching from one recipe plugin to another (e.g., Tasty Recipes → WP Recipe Maker).

Migration Steps:
  1. Check if new plugin has import tool for old plugin's format (many do!)
  2. If yes: Export from old plugin → Import to new plugin → Deactivate old plugin
  3. If no: Manually recreate recipes in new plugin (painful but sometimes necessary)
  4. Test schema on 10-20 recipes after migration
  5. Keep old plugin installed but deactivated for 30 days (safety net)
Pro Tip: WP Recipe Maker supports importing from most major recipe plugins. Check their documentation first.

Scenario 2: Theme-Provided Schema → Plugin Schema

Situation: Your old theme injected schema automatically, new theme doesn't.

Solution:
  1. Install a dedicated recipe plugin (WP Recipe Maker, Tasty Recipes, etc.)
  2. If recipes are in regular post content: Manually convert them to plugin format
  3. If old theme used custom fields: Export data, import into new plugin
  4. This is time-consuming but necessary—schema won't magically transfer
Warning: This is the most labor-intensive scenario. Budget 5-10 minutes per recipe for manual conversion.

Scenario 3: Plugin Schema → Manual Schema

Situation: You want to move from a plugin to manually-coded schema (advanced users).

Why You'd Do This:
  • • Maximum control over schema output
  • • Eliminate plugin bloat/conflicts
  • • Custom schema integration with headless WordPress
Steps:
  1. Create custom post type for recipes (if not already)
  2. Add custom fields for all schema properties (ingredients, instructions, etc.)
  3. Write PHP function to output JSON-LD schema from custom fields
  4. Hook function into wp_head action
  5. Test extensively before removing old plugin
Skill Required: Intermediate-Advanced PHP/WordPress development. Not recommended for beginners.

Post-Migration Validation & Monitoring

Complete This Within 24 Hours of Theme Change:
Test Rich Results on 20-30 Recipes

Use Google Rich Results Test. Prioritize your highest-traffic recipes.

Check Search Console Enhancements

Navigate to Enhancements → Recipes. Look for error spikes.

Request Indexing for Key Recipes

In Search Console, submit top 10-20 recipe URLs for re-indexing.

Monitor Traffic for 7 Days

Watch Google Analytics. Organic traffic drop = schema issue.

Verify Mobile Rendering

Test recipes on mobile devices. Schema + mobile-friendly = critical.

Check for Duplicate Schema

View page source—ensure only ONE schema block per recipe, not multiple.

Emergency Rollback Plan

If Schema Breaks After Theme Change:
Within 2 Hours: Revert to old theme immediately. Traffic loss compounds quickly.
Within 24 Hours: Diagnose the issue on staging site. Fix before attempting migration again.
Within 48 Hours: Submit re-indexing requests for affected URLs in Search Console.
Reality Check: Rolling back is not failure—it's smart SEO. Protect your traffic first, migrate properly second.

Theme-Specific Migration Notes

Genesis Framework → Any Theme

Genesis uses custom post types for recipes. Most plugins can import this data.

Tip: Export Genesis recipes as XML, import into new plugin via WordPress Tools → Import.

Foodie Pro → GeneratePress/Astra

Foodie Pro bundles Tasty Recipes. Switching themes doesn't affect Tasty Recipes.

Tip: Keep Tasty Recipes plugin active—it's theme-independent.

Divi → Kadence/Blocksy

Divi recipes often use shortcodes. New themes won't render these.

Tip: Manually convert Divi shortcode recipes to WP Recipe Maker format before switching.

Custom Theme → Any Popular Theme

Custom themes often have proprietary schema implementations.

Tip: Hire developer to extract recipe data from database and format for new plugin.

Preventing Future Migration Pain

Best Practices for Theme-Independent Recipes:
  • Use standalone recipe plugins that work with any theme (WP Recipe Maker, Tasty Recipes)
  • Avoid theme-bundled recipe features—you're locked into that theme forever
  • Document your recipe system—know what generates schema before problems arise
  • Test theme changes on staging before touching live site
  • Keep regular backups—weekly minimum for food blogs

Timeline: How Long Does Recovery Take?

If schema breaks during migration, here's how long it takes to recover rankings:

24-48hrsIf you catch and fix immediately (monitor Search Console daily)
3-7 daysIf you fix within a week and request re-indexing
2-4 weeksIf schema was broken for 1-2 weeks before fixing
1-3 monthsIf broken for a month+ (Google may distrust your site's schema)
Takeaway: Speed matters. The faster you detect and fix, the faster you recover.

Validate Your Recipe Schema

Generate fresh, error-free schema for all your recipes after migration.

Generate Schema Now →