WordPress will display title, author, categories and tags et al in all posts list, is there a way to remove some columns?
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.
Meanwhile, if you want to remove tags and date columns, you can add code in remove_column() function.
unset($defaults['tags']); unset($defaults['date']);