jigsaw
jigsaw copied to clipboard
Suggestion: adding custom taxonomy terms example
It would be nice adding some example on how to add terms from custom taxonomy. There is one:
Jigsaw::add_column($post_type, $column_label, function($post_id){ $term_list = wp_get_post_terms($post_id, $colum_slug, array("fields" => "all")); if(count($term_list) > 1) { foreach ($term_list as $term_single) { echo $term_single->name . " "; } } else { echo $term_list[0]->name; } }, 10);
Maybe also adding link term would be greater!