Top

Daily Tip: How to Remove the Comments Count Column From WordPress Pages

July 26, 2011

A comments count column on the Dashboard » Pages menu can seem a little silly when using WordPress as a CMS, especially when you have comments turned off for pages.

Here’s a little trick I found over at WPsnipp.com from author Kevin Chard. Add this to your functions.php file and it will remove the comments count column for pages:

function remove_pages_count_columns($defaults) {
  unset($defaults['comments']);
  return $defaults;
}
add_filter('manage_pages_columns', 'remove_pages_count_columns');

Now your listed pages will look like this with the column removed:

If you’re one who likes to tinker with your WordPress admin area to remove everything that you don’t need, then this is a good hack for you. Find more helpful snippets over at WPsnipp.com.

Comments

Comment Tags: wordpress training

One Response to “Daily Tip: How to Remove the Comments Count Column From WordPress Pages”

  1. Rob on July 27th, 2011 12:13 am

    Great Tip Sarah!

    Comment Tags: wordpress training

Got something to say?

Bottom
Article Archive  |  This site is a historical archive of pressography.com, a WordPress plugin and theme blog that published between 2006 and 2012. It is preserved for reference and is not operated by, affiliated with, or endorsed by its original authors. Nothing here is for sale and no form on this site is active. If you are the original owner and would like this domain returned, please get in touch.