Add admin column with taxonomy
-
Hi there,
i’ve registered a custom post type “product” and a taxonomy “product-category”. How can i display the taxonomies (product-category) in the admin columns of (product)? Like “Foo, Bar”… (comma seperated, similarly to the post categories).
In the past i’ve added columns in the manage-columns.php with this function:
add_action('manage_product_posts_custom_column', function ($column, $post_id) { if ('position' === $column) { echo get_field('position'); } if ('product-category' === $column) { echo -->> ???? <---; } }, 10, 2);
Thanks for help
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Add admin column with taxonomy’ is closed to new replies.