Menu

ACF Content Analysis for Yoast SEO

Type

Plugin

Active installations

100,000+

Download

Description

One of the most downloaded plugins for WordPress ever is Yoast SEO. The plugin has many features, but one of the most important is to be able to analyze how well the websites content is for SEO and provide feedback on what could be improved.

A problem is that this only works with the “normal” WordPress content. This may not be a problem for small websites but when using custom content and Advanced Custom Fields (ACF), this feature won’t work. This plugin solves the problem.

Statistics

Last updated
2019-05-15
Tested up to
5.2.2
Requires WordPress Version
4.9
Downloads
491724

Development

Since version 2.0 of the plugin, it’s the official plugin to add Yoast SEO support for ACF fields and developed along with Yoast and Thomas Kräftner

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)

Support

This software is Open Source and provided as-is.

Got an issue? Report it as a ticket on GitHub.

Need (paid) support? Check out our Maintenance package and Contact us

Commonly used filters (PHP7)

Remove specific field from scoring

add_filter( 'yoast-acf-analysis/blacklist_name', function ( $blacklist_name ) {
    $blacklist_name->add( 'my-field-name' );
    return $blacklist_name;
});

Remove field type from scoring

add_filter( 'yoast-acf-analysis/blacklist_type', function ( $blacklist_type ) {
    // text, image etc
    $blacklist_type->add( 'text' );
    $blacklist_type->add( 'image' );
    return $blacklist_type; 
});

Define custom field a specific heading value

add_filter( 'yoast-acf-analysis/headlines', function ( $headlines ) {
    // value from 1-6, 1=h1, 6=h6
    $headlines['field_591eb45f2be86'] = 3;
    return $headlines;
});

Change refresh rate

add_filter( 'yoast-acf-analysis/refresh_rate', function () {
    // Refresh rates in milliseconds
    return 1000; 
});

Changelog

2.3.0

Released May 15th, 2019

Enhancements:

  • ACF URL fields are now analyzed as links. Props to t49tran.

2.2.0

Released January 22nd, 2019

Bugfixes:

  • Fixes a bug where textarea and non-headline text content would not be wrapped in paragraphs for the analysis. Props skaeser.

Enhancements:

  • Introduces the ‘yoast-acf-analysis/field_order’ filter which allows for adjusting the ACF field order. This also adds the possibility to prepend field content to WordPress’ post_content using a negative field order. Props skaeser.

2.1.0

Released July 10th, 2018

Bugfixes:
* Fixes a bug where attempting to get the ACF version, wouldn’t always be reliable. This would lead the plugin to think that a newer version was installed than what was actually present.
* Fixes potential conflicts with other plugins due to generic variable naming.
* Fixes a bug where the YoastSEO ACF Content analysis would attempted to be loaded, although it wasn’t available.

Other:
* Adds filter examples to the readme.

2.0.1

Released October 19th, 2017

Bugfixes:
* Fixes the mismatch in textdomain according to the plugin slug.
* Fixes using an incorrect path when loading plugin data.
* Fixes a bug with flexible content and repeaters, in combination with ACF 5, causing JavaScript errors.
* Fixes a bug with short array notation which is a problem on sites running on PHP 5.3 or lower.
* Fixes a bug where assets are loaded without checking for required dependencies.

2.0.0

Released August 22th, 2017

Changes:
* Complete rewrite, including full support for ACF 4 and 5.

1.2.1

Released July 24th, 2017

Bugfixes:
* Fixes Yoast SEO Premium social sharing tabs not showing any content when this plugin is active, props Matt McAchran.

1.2.0

Released June 30th, 2016

  • Bugfixes:

    • Fixes an incompatibility issue with Yoast SEO version 3.2+ where the assets are registered with a new prefix.
  • Internationalization:

    • Improved text in notifications when dependencies are missing.