ACF PRO + Yoast SEO
-
Hello! I am creating gutenberg blocks with ACF PRO and using Yoast SEO. I have instal.led ACF Content Analysis for Yoast SEO and it works fine to detect and read the content. The problem is that the Yoast SEO Analysis doesn’t find any image or link inside the ACF PRO content. I have been trying to use the filter add_filter( ‘wpseo_pre_analysis_post_content’) it isn’t working correctly. Can you give an example to solve the problem.
This is a basic code:add_filter( 'wpseo_pre_analysis_post_content', 'prefix_render_acf_blocks_for_yoast', 15, 1 );
function prefix_render_acf_blocks_for_yoast( $content ) {
$with_blocks = do_blocks( $content );
$rendered = apply_filters( 'the_content', $with_blocks );
return $rendered;
}
The topic ‘ACF PRO + Yoast SEO’ is closed to new replies.