wp_list_categories in in nav_menu

Something along these lines should at least get your started. You’ll need to register the menu first and get the ID. I didn’t get to deleting categories but you’ll need to take care of that as well. This is largely untested. Back up your DB first!! add_action( ‘created_category’, ‘my_update_category_menu’ ); add_action( ‘delete_category ‘, ‘my_delete_category_menu’ ); … Read more

How to change menu order item

You can’t order it through the wordpress Menu if you’re using a filter. The worpdress menu system gives you the option to add Categories just as you add pages. If you don’t see it, go to Appearance -> Menu and then go to Screen Options (top right of the page) and make sure the option … Read more

Remove nav menu item by script

Here you go. //This code will register a Location with wordpress. //You can assign menu to this location. add_action(‘init’,’register_my_menu’); function register_my_menu(){ register_nav_menus(array( ‘header_navigation’ => ‘Header Navigation’ )); } But we haven’t defined any location in theme yet. This code will be used in theme where you want your menu to get rendered. <?php wp_nav_menu($menu_args); $menu_args … Read more

A page that shows a list of a specific custom post type

In addition to @Rarsts answer, once you’ve created a custom post type with archive like this example: //* Create product custom post type add_action( ‘init’, ‘register_product_custom_post_type’ ); function register_product_custom_post_type() { register_post_type( ‘product’, array( ‘labels’ => array( ‘name’ => __( ‘Product’, ‘wpsites’ ), ‘singular_name’ => __( ‘Product’, ‘wpsites’ ), ), ‘has_archive’ => true, ‘hierarchical’ => true, … Read more

How should I build a custom menu walker for this setup?

I can only imagine that since you are adding classes and ID’s this is for styling purposes. I really don’t see the point of this. This is the exact structure of a generic WP menu and as for the classes and ID’s: The current page gets a class of ‘current-menu-item’ so that id is not … Read more