Show custom taxaomy as a product meta

Question

I’m new to custom taxonomy. I have created a taxonomy called ‘collections”, under collections, I have items like blue shirts, suede shoes, etc. I have a product called a low-top lace-up suede shoe, and I have added it to the suede shoe collection. When I visit the product page, I want to see the link of the custom taxonomy a product meta. Please how do I get this done?
This is my Taxonomy

/ Register Custom Taxonomy

function custom_taxonomy_Item() {

$labels = array(
‘name’ => ‘Collections’,
‘singular_name’ => ‘Collection’,
‘menu_name’ => ‘Collections’,
‘all_items’ => ‘All Collections’,
‘parent_item’ => ‘Parent Collection’,
‘parent_item_colon’ => ‘Parent Collection:’,
‘new_item_name’ => ‘New Collection Name’,
‘add_new_item’ => ‘Add New Collection’,
‘edit_item’ => ‘Edit Collection’,
‘update_item’ => ‘Update Collection’,
‘separate_items_with_commas’ => ‘Separate Collection with commas’,
‘search_items’ => ‘Search Collection’,
‘add_or_remove_items’ => ‘Add or remove Collection’,
‘choose_from_most_used’ => ‘Choose from the most popular Collection’,
);
$args = array(
‘labels’ => $labels,
‘hierarchical’ => true,
‘public’ => true,
‘show_ui’ => true,
‘show_admin_column’ => true,
‘show_in_nav_menus’ => true,
‘show_tagcloud’ => true,
‘exclude_from_search’ => false,
‘supports’ => array( ‘title’, ‘editor’, ‘custom-fields’, ‘thumbnail’, ‘excerpt’, ‘revisions’, ‘page-attributes’ )
);
register_taxonomy( ‘collection’, ‘product’, $args );
}

0
Rostilupt 9 months 2021-11-27T13:58:22-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse