Code is here: WordPress chained categories
I write the same code for categories. You can edit for your needs.
I used the that js plugin: http://www.appelsiini.net/projects/chained
Related Posts:
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Admin: Navigation Menus do not show empty categories/taxonomies in the list’s search tab
- Same menu for different taxonomies to reach different content
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- Is There a Difference Between Taxonomies and Categories?
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- How to display non-hierarchical taxonomy as terms with checkboxes?
- get_categories for custom post type with a specific custom taxonomy attached
- Control term order on a per-post basis
- Could not insert term into the database
- How can I add the featured image functionality to a custom taxonomy?
- Creating “static” taxonomies to choose from, inside custom post type?
- Share one taxonomy across multiple blogs in 3.0 [duplicate]
- Can a Child Category Have More than One Parent?
- Combine two taxonomies in a hierarchical tree
- Weird behaviour when adding terms/term_taxonomies programmatically
- WordPress and isotope filtering
- Adding Colorpicker Field To Category
- How can I select a primary category?
- wp_update_nav_menu_item() to insert categories
- Custom Nav Walker menu – Display category count
- Admin Panel – Disable Moving Selected Terms To Top of Metabox
- How to make custom taxonomy check boxes like ‘Categories’
- Reflect nested categories in appearance > menus
- Create terms when registering taxonomy?
- How to create non-unique sub-category slugs?
- How to get next previous category in same taxonomy?
- Category menu item and its last 10 posts as sub-menu
- Display only deepest category on a single post?
- Is there a function to cause empty categories not to show in menus?
- How to add HTML5 ‘required’ attribute to wp_dropdown_categories() without JavaScripts?
- How to Override default update_count_callback for category
- Wrap a chosen category name with div
- Assign different category colours to different categories in the main menu
- Keep active class in post page
- Auto add pages to category menu
- Does WordPress Offer a Way to Find All of the Categories that Don’t Have Children?
- How to show empty category in admin menus search
- Display WooCommerce product categories in a 4 columns custom menu [closed]
- wp_list_categories, Add class to all list items with children
- Getting WordPress custom taxonomy/category?
- Display empty taxonomy terms with get_terms()
- Return category slug / title from category ID
- Connecting WordPress gallery to custom categories (taxonomy)
- How to get the number of child categories a specific parent category has?
- Get term by slug in Gutenberg
- Automatically add product_categories to nav_menu
- What’s the difference between “parent” and “category_parent” in a WP_Term object?
- Update taxonomy value of post type in query
- How to query posts from specific authors and categories using WP_query?
- How to get the depth of a category’s subcategories
- New categories are now going to 404s
- How can I convert some categories to a custom taxonomy?
- Any way to assign Post Categories and Tags to Links?
- Add Product categories to WordPress menu without losing hierarchy
- Custom Category/Subcategory structure
- Add custom taxonomy under the category title
- Display name of the last child category
- Best way to programmatically link to multiple categories (union/intersection) [closed]
- “Reversable” and “Re-useable” Subcategories (or other taxonomic structure)
- Add a specific category at a specific place to the menu that uses wp_list_pages
- Make parent category not selectable when it has child categories
- Get multidimensional array that reflects category hierarchy
- Multiple menu items highlighted
- Want to hide some categories from the categories meta box in the post editor for the two specific user roles
- How to export/import categories and keep their IDs?
- wp_nav_menu not highlighting the current category when viewing a single post
- How to use wp_category_checklist()?
- Show recent posts in menu?
- List Terms in Category
- How to get category URL with the slug?
- Get all sub-categories of a parent category
- Can I use get_adjacent_post for specific categories?
- How to view WordPress’ default category IDs?
- Random taxonomy category list
- Show Different Custom Menu on Different Category Pages
- Open subcategories in submenu on click in primary menu
- How to add Categories to the top menu of the website?
- Implementing a tricky wordpress menu (nested categories + thumbnails)
- Taxonomy filter all children
- Looking for the best solution to build this Blog structure? Picture attached?
- Nav menu category links not showing
- Display Slug instead of Name
- Force a user’s posts category
- Search Posts / Pages with multiple options?
- Show number of articles in menu
- Change existing taxonomy settings when using custom taxonomy
- ACF: Display category name using taxonomy field
- How to show only one category in breadcrumb navigation
- Automatically adding categories and authors in custom menu?
- Hard coded main navigation
- Highlight wp_nav_menu when category is selected
- Category pie diagram meta box in post editing page
- How to get the id from the custom category?
- Show Available Taxonomy List with Current Category
- category filter doesn’t work in WPML
- How to filter out Categories for specific post types on WordPress Admin?
- Exclude a category from the_category in the single post page
- How can i insert term in a specific language of Polylang?