0

In Plugin, I have made Custom Category for Products. Its Simply CRUD for Category and Category Wise Products.

So now i want to add these Categories in WordPress Frontend Menus. So it can be used for frontend.

So how can i do this?

enter image description here

Thanks in adv.

1

At the time of registering taxonomy, make sure you use the show_in_nav_menus parameter and set it true.

For Example:


 $args = array(
        'label'             => __( 'book', 'textdomain' ),
        'public'            => true,
        'rewrite'           => array('slug' => 'book', 'with_front' => true),
        'hierarchical'      => true,
        'show_in_nav_menus' => true,
        'show_ui'           => true,
    );

register_taxonomy( 'book', 'products', $args);

  • No, it is not a texonomy. I want it in plugin. and it includes custom tables and custom insert, Update, Delete For Category. So i want this Category in Menu, Not Taxonomy..!! – Dhruvang Gajjar Aug 18 '17 at 5:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.