Set Advanced Custom Fields as subheadings

#364381
  • Resolved Zissis V
    Rank Math free

    Hello, Is there any way to set an ACF as subheading instead of plain text for Rank Math?

    (Yoast does that with this) and the plugin


    add_filter( 'Yoast\WP\ACF\headlines', function ( $headlines ) {
    // value from 1-6, 1=h1, 6=h6
    $headlines['field_591eb45f2be86'] = 3;
    return $headlines;
    });

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    We already have an ACF module that allows our plugin to read the data from the ACF fields for content analysis. You just need to enable the ACF module from WP Dashboard > Rank Math > Dashboard.

    Hope this helps. Let us know if you need any other assistance.

    Hello Jaideep,

    The problem is that it reads every field as plain text and it wont recognize if any of this field is a heading like “h2, h3, h4 etc”.

    Hello,

    Can you please confirm which ACF field you are using to create headings?

    Looking forward to helping you.

    Hello Jaideep,

    Plain text fields or textareas, as I mentioned at my first comment Yoast does that by declaring the field ID as the heading it is in the frontend with the help of this plugin.

    add_filter( 'Yoast\WP\ACF\headlines', function ( $headlines ) {
       // value from 1-6, 1=h1, 6=h6
       $headlines['field_591eb45f2be86'] = 3;
       return $headlines;
    });

    Hello,

    I checked with the devs and we don’t have a filter or an option to make it work. Our content analysis is different from Yoast and there is currently no way to implement this.

    Also, the SEO score is only for your reference and doesn’t affect your site’s SEO performance. Since the keyword is present in the subheadings and Google will be able to check it in the frontend, you can simply ignore the test.

    Hope this helps. Let us know if you need any other assistance.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this ticket.