ACF Content Analysis for Yoast SEO

Description

This plugin ensures that Yoast SEO analysize all ACF content including Flexible Content and Repeaters.
Requires version 3.0 or later of Yoast SEO plugin.

Filters

ysacf_exclude_fields: exclude acf fields from Yoast scoring. Should return array of field names.

Example: exclude the text-color and background_image fields from Yoast scoring.

add_filter('ysacf_exclude_fields', function(){
    return array(
        'text_color',
        'background_image'
    );
});

Installation

  1. Download, unzip and upload the plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress (activate for network if multisite)

FAQ

I’m using Flexible Content and the field name is displayed in the snippet preview. How do I remove it?

You can remove it using the ysacf_exclude_fields filter.

add_filter('ysacf_exclude_fields', function(){
    return array(
        'acf_fc_layout',
    );
});

Reviews

Works Great

Great work guys. So far works as expected.

Just a tiny suggestion:

I found this snippet:


add_filter('ysacf_exclude_fields', function(){
    return array(
        'acf_fc_layout'
    );
});

in this support thread: https://wordpress.org/support/topic/acf-flexible-content-bug/

Since (I guess) most of the people would most probably want to exclude the AFC flexible content layout name, you could update the description section in the readme to include this, so that it’s easier for people to discover.

Great

Thanks for putting a plugin of this up. Saves some time!

Read all 15 reviews

Contributors & Developers

“ACF Content Analysis for Yoast SEO” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.2.6

  • Tested with WordPress 4.7.3.
  • Added FAQ section to plugin repository page.

1.2.5

  • Fix for taxonomies in the latest version of WordPress

1.2.4

  • Fix filter.
  • Add check for empty content.

1.2.3

  • Fix PHP warnings.
  • Works with WordPress 4.5

1.2.2

  • Fix warning for undefined index
  • Fix support for multisite

1.2.1

  • Bugfix for Yoast SEO Premium

1.2.0

  • Add support for alt and title tags in images.
  • Security improvements
  • Images returned as url will now be analysed as urls.

1.1.1

  • Bugfix for undefined index

1.1.0

  • Add support for taxonomies
  • Bug fixes and stability improvements
  • Works with WordPress 4.4.1

1.0.0

  • First public release