Skip to content

Suggestion: adding custom taxonomy terms example #17

@nuriarai

Description

@nuriarai

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions