Disable for CPT and its Taxonomies

#31553
  • Resolved Steven
    Rank Math free

    I use the Awesome Support plugin which has a “ticket” CPT and a few custom taxonomies attached. I have found in the settings to disable the sitemap for these, but, I can not seem to find a settings to remove support for them completely. Meaning, in the admin, the post list table is still adding the “SEO Details” column (yes, I know I can turn the display off) and when I work with tickets (the CTP) the Rank Math metox still shows and it should not. Same for the custom taxonomies attached to the CPT>

Viewing 1 replies (of 1 total)
  • Todd
    Rank Math free

    Hi Steven,

    Thanks for getting in touch with us.

    You can disable Rank Math from outputting the SEO info for certain CPTs using this filter in your theme’s functions.php file:

    add_action( 'wp_head', 'rankmath_disable_features',1);
    function rankmath_disable_features() {
    if(is_singular('post_type_name')) {
        remove_all_actions( 'rank_math/head');
    }
    }

    Replace the post_type_name with the actual post type name.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Disable for CPT and its Taxonomies’ is closed to new replies.