• Resolved Reventlov

    (@reventlov)


    Hi,

    Is there a default category for menu ?

    How can I attribute one ?

    Regards.

    EDIT:

    found it, it works :

    
    add_action( 'init', 'sk_add_category_taxonomy_to_menus' );
    function sk_add_category_taxonomy_to_menus() {
    	register_taxonomy_for_object_type( 'category', 'erm_menu' );
    }
    • This topic was modified 7 years, 3 months ago by Reventlov.
    • This topic was modified 7 years, 3 months ago by Reventlov.
    • This topic was modified 7 years, 3 months ago by Reventlov.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to add category for menu ?’ is closed to new replies.