Best Practice to Remove WordPress Post Columns in All Posts List – WordPress Tutorial

By | September 27, 2019

WordPress will display title, author, categories and tags et al in all posts list, is there a way to remove some columns?

wordpress post column list

In this tutorial, we will introduce a simple way to remove some post columns for your.

Open your wordpress theme functions.php

We will add some php codes in functions.php file to remove wordpress post columns.

Add code below in functions.php

add_filter('manage_posts_columns', 'remove_column');
function remove_column($defaults) {
    unset($defaults['author']);
    unset($defaults['categories']);
    unset($defaults['comments']);
    return $defaults;
}

In this code, we will remove author, categories and comments columns.

Then you will find this result.

wordpress remove post columns

Meanwhile, if you want to remove tags and date columns, you can add code in remove_column() function.

unset($defaults['tags']);
unset($defaults['date']);

Leave a Reply

Your email address will not be published. Required fields are marked *