我的类别和标签前面有这些0:
https://www.dropbox.com/s/7v9hvf25wsw15p8/Screenshot%202014-11-08%2020.50.02.png?dl=0
函数中的代码如下所示:// Work columns
function work_edit_columns($columns){
$columns = array(
"cb" => "<input type=\'checkbox\' />",
"title" => __("Work"),
"work_category" => __("Category"),
"work_hashtags" => __("Tags"),
"date" => __("Date")
);
return $columns;
}
add_action("manage_work_posts_custom_column", "work_custom_columns");
function work_custom_columns($column){
global $post;
switch ($column){
case "work_category":
echo get_the_term_list($post->ID, \'work_category\', \'\', \', \',\'\');
break;
}
global $post;
switch ($column){
case "work_hashtags":
echo get_the_term_list($post->ID, \'work_hashtag\', \'\', \', \',\'\');
break;
}
}
有没有办法去掉这个?