Best Multi Vendor Marketplace Plugin for WordPress › Forums › WCFM – Ultimate › How could i add custom divid categories for product
Tagged: Another divid category
- This topic has 5 replies, 3 voices, and was last updated 7 years, 10 months ago by
WCFM Forum.
- AuthorPosts
- August 1, 2018 at 2:36 am #27372
MOHO
ParticipantHi
I use “https://facetwp.com/” for Advanced Filtering for WordPress.So i will create like animal categories different than product categories.
I want to provide multi categories for user to search, so only one categories is not satisfy for me.
But how could i add new “animal categories” on the top of original product categories?
by moho
- August 1, 2018 at 7:44 am #27398
d-n-13
ParticipantHello
add this code in your function.php
function ess_custom_taxonomy_Item() {
$labels = array(
‘name’ => ‘Animals’,
‘singular_name’ => ‘Animal’,
‘menu_name’ => ‘Animals’,
‘all_items’ => ‘All Animals’,
‘parent_item’ => ‘Parent Animal’,
‘parent_item_colon’ => ‘Parent Animal:’,
‘new_item_name’ => ‘New Animal Name’,
‘add_new_item’ => ‘Add New Animal’,
‘edit_item’ => ‘Edit Animal’,
‘update_item’ => ‘Update Animal’,
‘separate_items_with_commas’ => ‘Separate Animal with commas’,
‘search_items’ => ‘Search Animals’,
‘add_or_remove_items’ => ‘Add or remove Animals’,
‘choose_from_most_used’ => ‘Choose from the most used Animals’,
);
$args = array(
‘labels’ => $labels,
‘hierarchical’ => true,
‘public’ => true,
‘show_ui’ => true,
‘show_admin_column’ => true,
‘show_in_nav_menus’ => true,
‘show_tagcloud’ => true,
);
register_taxonomy( ‘Animals’, ‘product’, $args );}
add_action( ‘init’, ‘ess_custom_taxonomy_item’, 0 );
- August 1, 2018 at 3:43 pm #27425
WCFM Forum
MemberHi,
Best to use – https://wordpress.org/plugins/types/
Just create any no of custom categories for you Products and all will be visible at Product Manager, in fact I already see one is there “Brand” 🙂
Thank You
- August 1, 2018 at 9:24 pm #27438
MOHO
ParticipantHi WCFM
“Brand” is theme default category, and i start to research “Toolset Types”, thanks a lot!
- August 2, 2018 at 2:53 am #27453
MOHO
ParticipantThis reply has been marked as private. - August 4, 2018 at 5:05 am #27560
WCFM Forum
MemberHi,
You have created Product Fields.
Create taxonomy for the product.
You may check this once – https://wclovers.com/knowledgebase/wcfm-toolset-types/
Thank You
- AuthorPosts
- The topic ‘How could i add custom divid categories for product’ is closed to new replies.