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
61 stars 20 forks source link

Subheading not recognised #180

Open joelbuckland opened 5 years ago

joelbuckland commented 5 years ago

Please give us a description of what happened.

I'm getting this feedback from Yoast "Subheading distribution: You are not using any subheadings, although your text is rather long" yet each page has H1, H2 and H3 tags in place and sections between each tag is less than 150 words. So I suspect it's an issue with this plugin?

Please describe what you expected to happen and why.

For yoast plugin to recognise my subheadings

How can we reproduce this behavior?

  1. Site created with Elementor
  2. ACF forms using tabs connected to pages using dynamic links

Technical info

Pcosta88 commented 5 years ago

Happens with: ACF Pro: 5.7.10 and 5.7.11 Yoast: v10 WordPress: 5.1.1 ACF Analysis: 2.2.0

Pcosta88 commented 5 years ago

Please inform the customer of conversation # 481884 when this conversation has been closed.

dariodev commented 5 years ago

Same Issue, happens with: ACF Pro: 5.7.13 Yoast: v10.1.2 WordPress: 5.1.1 ACF Analysis: 2.2.0

Using following function for H2:

add_filter( 'yoast-acf-analysis/headlines',
  function( $headlines ) {
    $headlines['section_title'] = 2;
    return $headlines;
  }
);
bradholmes-studio commented 5 years ago

Same with ACF Pro: 5.8.1 Yoast: v11.4 ACF Analysis: 2.30

jnaklaas commented 4 years ago

Was this ever solved? I'm getting this error too.

ACF Pro: 5.8.12 Yoast: 14.6.1 ACF Analysis: 2.6

I'm using only custom ACF blocks. ACF are created using stoutlogic/acf-builder, Blocks are created using mwdelaney/sage-acf-gutenberg-blocks.

Filter function:

add_filter( 'Yoast\WP\ACF\headlines', function( $headlines ) {
    $headlines['sectionA_title'] = 2;
    $headlines['sectionB_title'] = 2;
    $headlines['title'] = 3;
    return $headlines;
});

Where sectionA_title, sectionB_title and title are the names of the fields. I saw the example shown on https://wordpress.org/plugins/acf-content-analysis-for-yoast-seo/ uses the key of the field. Can I safely assume field names should work too?

suascat commented 4 months ago

Please inform the customer of conversation # 1151350 when this conversation has been closed.

TommoParra commented 4 months ago

I have a custom development with WordPress, which means that I have a lot of content (all of it) that is not being called by the function the_content(), which to the best of my undertanding, is what YOAST reads to make its content analysis.

Since I'm using ACF (Advanced Custom Fields) to dynamize the content within my templates, I discovered that ACF and YOAST collaborated together in the making of this plugin: https://wordpress.org/plugins/acf-content-analy... Which successfully reads the content of my custom fields.

The issue right now is that it does read the content, but it doesn't understand what the tag is. It's all plane text for it.

So I found that there's a filter to add to my functions.php, which looks like this:

add_filter('Yoast\WP\ACF\headlines', function ($headlines) { 
     $headlines['hero_title'] = 1; // h1 return $headlines; 
}); 

But it doesn't work at-all.

My own formula is this one:

add_filter( 'Yoast\WP\ACF\headlines', function ( $headlines ) { 
     $headlines['field_591eb45f2be86'] = 3; return $headlines;
 }); 

And this is my implementation of that function:

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. A 
     $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; 
}); 

add_filter('Yoast\WP\ACF\refresh_rate', function () { 
     return 1000; // Refresh rate in milliseconds 
});

Any fix or idea of what might be happening is much appreciated.

Dlibs1 commented 4 months ago

Please inform the customer of conversation # 1153300 when this conversation has been closed.

TommoParra commented 4 months ago

Please inform the customer of conversation # 1153300 when this conversation has been closed.

Huh?