How to remove annoying tag column in posts list
When working with a blog post, you may or may not use a tag to tag your post. in my case, I used a long list of tags for each post and when it showed under the posts list, it is really annoying to see a long list of tags. I decided to remove them so I can browse the posts list more quickly and with less scrolling.
here’s a quick solution if you want to remove columns in the posts list
add the following code to your functions.php
[php]
if( !function_exists(‘wp_remove_wp_columns’) ):
function wp_remove_wp_columns( $columns ) {
unset($columns[‘tags’]);
return $columns;
}
function wp_remove_wp_columns_init() {
add_filter( ‘manage_posts_columns’ , ‘wp_remove_wp_columns’ );
}
add_action( ‘admin_init’ , ‘wp_remove_wp_columns_init’ );
endif;
[/php]
Here’s the before and after the result from the added code.
Before
After
you certainly can notice how many spaces and scrolling were saved.
That’s all folks, hope you stay tuned for more How To in our new blog section.
Leave a Reply