jigsaw icon indicating copy to clipboard operation
jigsaw copied to clipboard

Suggestion: adding custom taxonomy terms example

Open nuriarai opened this issue 8 years ago • 0 comments

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!

nuriarai avatar Dec 18 '16 13:12 nuriarai