It would be good to filter which fields get included then. Some may not always be used on page.
Another thought is, sometimes I use an ACF-field for the h1-tag. I don’t know how/if there is a way to let Yoast know about that, though.
I just load it on admin_init
function load_yoast_acf_link() {
wp_enqueue_script( 'acf_yoastseo', get_template_directory_uri() . '/acf_yoastseo.js', 'jquery' );
}
add_action( 'admin_init', 'load_yoast_acf_link' );
Thanks for sharing this @solverat – was looking into adding ACF-fields. The web is still filled with the old wpseo_pre_analysis method http://support.advancedcustomfields.com/forums/topic/yoast-seo-acf/
Ok, this seems to work.
1/ Deactivated and deleted 5.1.9.1
2/ Uploaded this patched version and activated it.
Ok, glad to see it was not just me going crazy here 🙂 Will be rolling back for now.