Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: adding custom taxonomy terms example #17

Open
nuriarai opened this issue Dec 18, 2016 · 0 comments
Open

Suggestion: adding custom taxonomy terms example #17

nuriarai opened this issue Dec 18, 2016 · 0 comments

Comments

@nuriarai
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant