ACF Content Analysis for Yoast SEO

外掛說明

This plugin ensures that Yoast SEO analyzes all ACF content including Flexible Content and Repeaters.

Yoast SEO for WordPress content and SEO analysis does not take in to account the content of a post’s Advanced Custom Fields. This plugin uses the plugin system of Yoast SEO for WordPress 3.1+ to hook into the analyser in order to add ACF content to the SEO analysis.

This had previously been done by the WordPress SEO ACF Content Analysis plugin but that no longer works with Yoast 3.0. Kudos to ryuheixys, the author of that plugin, for the original idea.

This Plugin is compatible with the free ACF 4 Version as well as with the PRO Version 5. Please be aware that it ignores Pro Add-Ons for Version 4. In that case please upgrade to ACF PRO Version 5.

If you have issues, please submit them on GitHub

Previously called Yoast ACF Analysis.

滤波器

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;
});

使用者評論

六月 14, 2018
Issue since November 2017 -> https://github.com/Yoast/yoast-acf-analysis/issues/120. Support is terrible. Don't use this plugin.
五月 28, 2018
Just what I needed to connect ACF Pro to Yoast. Although I don't need yoast to tell me if I have included everything I need to, it's nice to see some green ticks. After installing this plugin and writing my posts, my CPU usage went through the roof. This led to my host suspending my account until I dealt with the issue. After many hours of looking around for the culprit I came down to this one. Wasted 12 hours of my life. Thanks.
三月 5, 2018
Hello After long hours of research, I have come to understand that ACF Content Analysis for Yoast SEO is the source of my problem. Indeed I am creator of wordpress themes and on a site site for photographers, the site always fell as soon as the client uploaded images in batch of 30 or 80 and even by filling only a title or just meta description of the plugin YOAST. After uninstalling ACF Content Analysis for SEO Yoast all came back in order so this plugin is not stable at all especially when a client must often uploaded images by ACF image or ACF gallery. Hoping for future updates Have a good day
閱讀全部 26 則使用者評論

參與者及開發者

ACF Content Analysis for Yoast SEO 外掛為開源軟體。以下人員為這個外掛做出了重大貢獻。

參與者

ACF Content Analysis for Yoast SEO 外掛目前已有 4 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將 ACF Content Analysis for Yoast SEO 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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.