Yoast / yoast-acf-analysis

WordPress plugin that adds the content of all ACF fields to the Yoast SEO score analysis.
https://wordpress.org/plugins/acf-content-analysis-for-yoast-seo/
GNU General Public License v3.0
62 stars 20 forks source link

Content analysis only working when ACF block is in edit mode when block registered via JSON #326

Open joshuakern opened 1 year ago

joshuakern commented 1 year ago

Please give us a description of what happened.

After registering an ACF block via JSON using the default preview mode, the block content is only analyzed when the block is in edit mode. When switching back to the preview mode, the block content is no longer analyzed and the Yoast analysis reverts back to previous numbers as if the block didn't exist.

JSON block example:

{
        "name": "acf/hero",
        "title": "Hero",
        "acf": {
                "mode": "preview",
                "renderTemplate": "hero.php"
        }
}

Please describe what you expected to happen and why.

I would expect the content to be analyzed on page load and regardless of switching between block modes.

How can we reproduce this behavior?

  1. Register ACF block via json with default preview mode
  2. Switch between block modes in block editor

Technical info

nowakpiotrek commented 1 year ago

The same issue is happening to me on multiple sites.

virik commented 1 year ago

+1

KodeksAS commented 1 year ago

+1

zgillam commented 1 year ago

+1