• Resolved Fibro Jedi

    (@fibrojedi)


    Hey there,

    Not that I’m trying to hit 100% (because I can’t as I don’t use the AI feature) but I made my own Table of Contents plugin that I insert using a shortcode.

    Do you – or can you – have a hook or a setting that, instead of trying to find a mystery table of contents, lets us define a shortcode/ID/plugin that serves the TOC so this can have a positive effect on the grade, please?

    Thanks,

    FJ

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @fibrojedi,

    Thank you for contacting the support.

    You can add the filter from this guide to your plugin to let Rank Math detect the Table of Contents: https://rankmath.com/kb/table-of-contents/

    Hope this helps.

    Thread Starter Fibro Jedi

    (@fibrojedi)

    Fab, worked like a charm. Thank you ??

    Thread Starter Fibro Jedi

    (@fibrojedi)

    While we’re talking filters – do you know how to disable specific tests on custom post types? e.g. disable the minimum word count filter on a product page.

    Thanks in advance!

    Thread Starter Fibro Jedi

    (@fibrojedi)

    I managed it by moving things around from your linked page

    function my_rank_math_changes($tests,$type){
      global $post_type;
      if($post_type=="custom_post_type"){
       unset($tests['lengthContent']);
       return $tests;
      }
      else{
        return $tests;
      }
    }
    add_filter('rank_math/researches/tests', 'my_rank_math_changes', 10, 2 );
    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @fibrojedi,

    We’re glad that you were able to find the required filter to disable the test.

    This guide lists all the filters to disable individual Content Analysis Tests:
    https://rankmath.com/kb/disable-seo-content-tests/

    Hope that helps and please feel free to open a new support topic if you require assistance with anything else.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to Make Rank Math Recognise my TOC’ is closed to new replies.