I have a custom development with WordPress where all the content is managed through ACF (Advanced Custom Fields) and not through the default the_content()
function, which Yoast uses for its content analysis. To ensure Yoast reads my ACF content, I am using the ACF Content Analysis for Yoast SEO plugin (plugin link).
The plugin successfully reads the ACF content but fails to recognize the content type (whether it’s a <p>
or <h1>
). I attempted to use the provided filter in my functions.php
to define headlines, but it doesn’t seem to work. Here’s the filter I implemented:
php
Copy code
add_filter('Yoast\WP\ACF\headlines', function ($headlines) { $headlines['hero_title'] = 1; // h1 $headlines['hero_subtitle'] = 2; // h2 $headlines['hero_feature_1'] = 3; // h3 $headlines['hero_feature_2'] = 3; // h3 $headlines['hero_feature_3'] = 3; // h3 $headlines['advantage_1_title'] = 3; // h3 $headlines['advantage_2_title'] = 3; // h3 $headlines['advantage_3_title'] = 3; // h3 $headlines['charging_models_section_title'] = 2; // h2 $headlines['charging_model_1_title'] = 3; // h3 $headlines['charging_model_2_title'] = 3; // h3 $headlines['charging_model_3_title'] = 3; // h3 $headlines['charging_model_4_title'] = 3; // h3 $headlines['payment_channels_section_title'] = 2; // h2 $headlines['gateways_section_title'] = 2; // h2 $headlines['block_1_title'] = 3; // h3 $headlines['block_2_title'] = 3; // h3 $headlines['block_3_title'] = 3; // h3 $headlines['block_4_text'] = 3; // h3 $headlines['analysis_section_title'] = 2; // h2 $headlines['notifications_section_title'] = 2; // h2 $headlines['recover_payments_section_title'] = 2; // h2 $headlines['scale_section_title'] = 2; // h2 $headlines['scale_section_indicator_title'] = 3; // h3 $headlines['other_features_section_title'] = 2; // h2 $headlines['other_features_section_title_1'] = 3; // h3 $headlines['other_features_section_title_2'] = 3; // h3 $headlines['other_features_section_title_3'] = 3; // h3 $headlines['banner_title'] = 2; // h2 $headlines['banner_feature_1'] = 3; // h3 $headlines['banner_feature_2'] = 3; // h3 $headlines['banner_feature_3'] = 3; // h3 return $headlines; });
In my template, the fields are called like this:
php
Copy code
<h1 class="body-extraHuge"><?php the_field('hero_title'); ?></h1> <h2 class="body-extraBig"><?php the_field('hero_subtitle'); ?></h2> <h3 class="feature-txt"><?php the_field("hero_feature_{$i}"); ?></h3>
However, Yoast’s analysis reports that there are no subheadings, even though they are present in the template. Here is what the Yoast analysis shows:
Problems:
Improvements:
Good results:
I have ensured that the field names are correct and matched with the filter. I also cleared the cache and updated the plugins, but the issue persists.
Any insights or suggestions on how to fix this would be greatly appreciated.
Thanks in advance!
]]>Second, its redirection code frequently breaks everything woocommerce by throwing 404 errors for all woocommerce pages. When I deactivate/activate the plugin it works again. It suggests a caching problem. A very serious bug. I’ve tried reporting it to their support twice, and their support is useless. There are roughly two types of support, the ones where they genuinely try to help, and the ones where they don’t care for anything except making you go away. Yoast Support is the latter. I doubt that bug was ever reporting to the devs, and this makes them happy.
]]>Things which does not work within the content analysis are:
Words counter
Canonical URL
Headings
Social meta tags
Meta robots – do not provide authentic information
Keywords density does not count anything…
We use a native WordPress text editor within the “inner content” of Oxygen builder. So no text is loaded from Oxygen. We know there is one code to make it possible to load content from Oxygen, but I will mention once more – we write our content in a native WordPress editor. In this case, SEOPress content analysis supposes to work.
]]>The WP Bakery editor stops working properly, until I disable the web rules and it immediately starts working again.
WP Version – 6.0.2
Yoast Version – 19.7.2
WP Bakery version – 6.9.0
Do you have any insights? Thank you!
]]>Yesterday I noticed a few errors in “content analysis”. I don’t is it only me or the whole SEO press community is facing this problem.
Here are the errors:
* Keyword Desnity says:
We were unable to calculate the density of your keywords. You probably haven‘t added any content or your target keywords were not find in your post content.
* Wordcounter says:
Words counter is not a direct ranking factor. But, your content must be as qualitative as possible, with relevant and unique information. To fulfill these conditions, your article requires a minimum of paragraphs, so words.
0 words found.
0 unique words found.
* Interlinking says:
Internal links are important for SEO and user experience. Always try to link your content together, with quality link anchors.
This page doesn’t have any internal links from other content. Links from archive pages are not considered internal links due to lack of context.
All of them are incorrect because:
* The page has over 600+ words content
* Decent keyword density
* Good internal links.
How can I fix these errors.
Thank you
]]>When I try to create a new post (or page), I got the following error message : “The “yoast-seo” plugin has encountered an error and cannot be rendered.”
This happened after the 19.3 version update. So I downgraded to 19.2 but still had the same error. I put the 19.3 version back again.
Here are the errors I get on the Chrome Inspector :
TypeError: he.helpers.getLanguagesWithWordComplexity is not a function
at a.value (externals-components.js:15:18785)
at externals-components.js:28:758
at os (react-dom.min.js:9:114258)
at Ur (react-dom.min.js:9:77643)
at Ir (react-dom.min.js:9:77571)
at Dr (react-dom.min.js:9:77434)
at Pr (react-dom.min.js:9:74429)
at react-dom.min.js:9:30173
at unstable_runWithPriority (react.min.js:9:7431)
at xn (react-dom.min.js:9:29950)
I tested a few things and I noticed that the error doesn’t show up if I deactivate the content analysis feature.
I deactivated the content analysis for now but if you find a solution for this, it would be great.
]]>I was wondering if the Content Analysis also works for “hard coded” php themes? The issue is that SEO Press expects the content of the website to be written in WordPress blocks for analizing. I am coding the pages of the theme directly inside the .php files and therefor need those to be checked.
All text strings are put inside <?php esc_html_e( '' ); ?>
tags and should be readable for the SEO Press plugin. WPML for example has no problem reading the strings.
Is there a setting I need to change, an additional plugin to install or something I need to include to the code to make it work?
Looking forward to hear from you.
Thank You
Daniel
I’m working on a site built with Oxygen. I’m using the new Universal Metabox, which is very cool. However, under Content Analysis, the Word Counter says “No content? Add a few more paragraphs!”, even though the pages have plenty of text.
Keyword Density also does not seem to work, as it says “We are unable to calculate the density of your keywords…”, even though keywords are defined, and are present in the text.
This is true both when using the UM on the front-end (while logged in) or in the Oxygen editor.
The UM is seeing the different Headings on the pages, and Social Meta tags also seem to be working as intended.
I have enabled Oxygen Builder Compatibility in Tools.
Any suggestions on how to fix these issues?
Thanks in advance.
]]>