Remove Columns in Page and CPT admin list

#848736
  • Resolved Technique Francecom
    Rank Math free

    Hi,

    How i can remove automatically in rank-math.php the columns tiltre_seo, description_seo and details_seo from de admin list (edit.php) for all pages and cpt.

    Your AI support write this, but doesn’t work.

    // Function to remove SEO title and description columns
    function remove_rank_math_seo_columns($columns) {
    unset($columns[‘rank_math_title’]); // Remove SEO Title column
    unset($columns[‘rank_math_description’]); // Remove SEO Description column
    // note : missing details
    return $columns;
    }
    add_filter(‘manage_posts_columns’, ‘remove_rank_math_seo_columns’);
    add_filter(‘manage_pages_columns’, ‘remove_rank_math_seo_columns’);
    add_filter(‘manage_custom_post_type_columns’, ‘remove_rank_math_seo_columns’); // Replace ‘custom_post_type’ with your actual custom post type

    Thank you

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with removing the SEO columns in the admin list. Thank you for raising this concern.

    The code snippet you provided is almost correct, but it seems like you might need to ensure that the filter for custom post types is correctly specified. Here’s an updated version of your code that should work:

    // Function to remove SEO title and description columns
    function remove_rank_math_seo_columns($columns) {
        unset($columns['rank_math_title']); // Remove SEO Title column
        unset($columns['rank_math_description']); // Remove SEO Description column
        return $columns;
    }
    add_filter('manage_posts_columns', 'remove_rank_math_seo_columns');
    add_filter('manage_pages_columns', 'remove_rank_math_seo_columns');
    add_filter('manage_your_custom_post_type_columns', 'remove_rank_math_seo_columns'); // Replace 'your_custom_post_type' with your actual custom post type

    Make sure to replace 'your_custom_post_type' with the actual name of your custom post type. If you have multiple custom post types, you can add additional filters for each one.

    If this still does not resolve the issue, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    Thank you for your patience!

    Sources:
    How to Disable All Rank Math Generated SEO Tags » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

    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 ‘Remove Columns in Page and CPT admin list’ is closed to new replies.