I am managing a site with a large volume of legacy posts (~650+). We recently performed a bulk database migration to update post content from a proprietary shortcode format to standard HTML. While we have successfully used the Yoast Test Helper to "Reset indexables tables & migrations" and "Reset the internal link counter", and followed up with the "Start SEO Data optimization", there is a persistent "Sync Gap."
The SEO data in the Indexables tables appears updated, but the "Traffic Light" dots in the WordPress Admin post list remain stale (orange/gray). Currently, these scores only seem to be recalculated and saved to the database when a human physically opens the post editor, triggering the client-side JavaScript analyzer.
I would like a tool in the Yoast Test Helper that can trigger a bulk recalculation of the SEO and Readability scores without requiring a manual visit to each post editor.
Specifically, a feature that could:
- Iterate through a selected post type.
- Trigger the analysis engine (perhaps via a background process or a headless routine).
- Update the _yoast_wpseo_content_score and _yoast_wpseo_estimated_reading_time_minutes metadata so the Admin UI reflects the actual state of the current content.
My failed attempts include:
- Manual Update: Not feasible for 600+ posts.
- wp_update_post via WP-CLI: This triggers the save_post hook and updates the post_modified timestamp, but because the Yoast analysis is JavaScript-dependent, it does not update the visual "dots" in the dashboard.
- SEO Data Optimization: This successfully populates the Indexables, but does not appear to write the visual score metadata back to the wp_postmeta table for the dashboard UI.
- Various code hacks
This tool would be invaluable for developers performing bulk content migrations or site audits where the "Source of Truth" in the database has changed, but the Yoast UI has not yet "seen" it.
I am managing a site with a large volume of legacy posts (~650+). We recently performed a bulk database migration to update post content from a proprietary shortcode format to standard HTML. While we have successfully used the Yoast Test Helper to "Reset indexables tables & migrations" and "Reset the internal link counter", and followed up with the "Start SEO Data optimization", there is a persistent "Sync Gap."
The SEO data in the Indexables tables appears updated, but the "Traffic Light" dots in the WordPress Admin post list remain stale (orange/gray). Currently, these scores only seem to be recalculated and saved to the database when a human physically opens the post editor, triggering the client-side JavaScript analyzer.
I would like a tool in the Yoast Test Helper that can trigger a bulk recalculation of the SEO and Readability scores without requiring a manual visit to each post editor.
Specifically, a feature that could:
My failed attempts include:
This tool would be invaluable for developers performing bulk content migrations or site audits where the "Source of Truth" in the database has changed, but the Yoast UI has not yet "seen" it.