• Resolved joshpaynedesigns

    (@joshpaynedesigns)


    I have noticed a bug when using this plugin with ACF’s flexible content sections.

    Here are the steps:
    + Create a new page.
    + Add a new flexible content section to the page. This can be anything. I setup a content WYSIWYG for this example.
    + Add any text to this section.
    + When you look at the Yoast SEO metabox in WP you will see that they meta description section says [content_section] then the text you wrote in the WYSIWYG. Note: the [content_section] will be what ever you name the repeatable section in ACF.

    If you could help me with this that would be great!

    https://wordpress.org/plugins/acf-content-analysis-for-yoast-seo/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Viktor Fröberg

    (@viktorfroberg)

    Hi!
    Out of the box this plugin add all the ACF-content to Yoast analysis.
    But there is a filter in the plugin to remove fields. The repeatable section name for flexible content is stored in a field called “acf_fc_layout”, so try to add the following code to your functions.php file.

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

    Please let me know if it solves your problem!

    / Viktor

    Thread Starter joshpaynedesigns

    (@joshpaynedesigns)

    Viktor,

    This doesn’t work. It took out the flexible section name out but it also took out the text I wrote in the WYSIWYG as well. I just want the flexible content field name to not show. However, I did find that if I have 2 content sections (or any other flexible content section) on my page the Meta Description generator will skip the first one and just pull in the text from the second one. (not the flexible content field title) Thoughts?

    Plugin Author Viktor Fröberg

    (@viktorfroberg)

    Hi again!

    I tried doing it myself and couldn’t.
    I’ve pinpointed the bug causing it and I’ll try to release a fix for it later today!

    Thread Starter joshpaynedesigns

    (@joshpaynedesigns)

    Viktor,

    Thanks for the quick responses. Once you release the fix will I still need that exclude function that you wrote for me?

    Plugin Author Viktor Fröberg

    (@viktorfroberg)

    Hi!
    Yes, you’ll still need it! All fields that should not be analysed by Yoast should be in that function, including the ones that ACF creates for you.

    I could probably exclude it by default, but i don’t want to take to much liberties, so its better to let everything trough and let the plugin-user define what to not score.

    / Viktor

    Plugin Author Viktor Fröberg

    (@viktorfroberg)

    Hi!
    Sorry for the late answer, it’s been a hectic week.
    Just released a new version of the plugin that should fix your problem!

    Please let me know how it works!

    / Viktor

    Thread Starter joshpaynedesigns

    (@joshpaynedesigns)

    Viktor,

    It works! Thanks for the quick update.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘ACF Flexible Content Bug’ is closed to new replies.