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
- Is There a Difference Between Taxonomies and Categories?
- Check if a post is in any child category of a parent category
- get_categories for custom post type with a specific custom taxonomy attached
- Could not insert term into the database
- Weird behaviour when adding terms/term_taxonomies programmatically
- wp_update_nav_menu_item() to insert categories
- 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?
- Wrap a chosen category name with div
- Keep active class in post page
- 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?
- Add custom taxonomy under the category title
- Display name of the last child category
- wp_nav_menu not highlighting the current category when viewing a single post
- List Terms in Category
- How to get category URL with the slug?
- How to view WordPress’ default category IDs?
- Random taxonomy category list
- Open subcategories in submenu on click in primary menu
- How to add Categories to the top menu of the website?
- Looking for the best solution to build this Blog structure? Picture attached?
- Nav menu category links not showing
- Display Slug instead of Name
- Hard coded main navigation
- Show Available Taxonomy List with Current Category
- Exclude a category from the_category in the single post page
- Class active for Archive link – looped out
- Why does the argument list_only do on Walker_Category_Checklist::start_el?
- Filtering multiple categories via the URL
- Display specific categories by ID
- Menus don’t work after 4.4 [closed]
- Create menu / submenu from category subcategory and posts
- wp_list_categories in in nav_menu
- Drop posts from categories in MySql
- Customize category page for different custom taxonomies
- Get posts under a category with SQL
- Custom taxonomy template for categories
- Redirect to another page using contact form 7? [closed]
- Display custom taxonomy attached to the post on post single page
- Show subcategories on a parent category page
- Give Children Unique ID’s
- Display sibling categories on category page
- How to modify the output of wp_terms_checklist when used within the built-in category metabox on edit posts?
- Echo text using is_tag
- Searching for a category returns nothing if category is empty
- WP 4.7 in_category change?
- Get posts of a custom post type from category from taxonomy?
- Illegal string offset ‘taxonomy’ in
- Multiple categories for one menu item?
- Change categories count to include media attachments
- How to Sync Menu, Widgets and other masters from Main Website to its Sub Site
- How to get selected taxonomy or category ID if using custom walker?
- Theme modification for custom category menus
- Let user select their own category
- Change appearance based on category but post is in two main categories
- Setting selected term_id with wp_dropdown_categories?
- creating categories programmatically
- Is custom menu name and category name linked in wordpress?
- sidebar troubles, taxonomy trouble
- Displaying posts of given category
- How to automatically generate custom menu item from categories?
- WP-CLI Add category as menu item main-menu
- Category post count is not correct
- WordPress Default Category and Custom Taxonomy Selected Attribute not Working After Searched in wp_dropdown_categories Array
- Show subChild categories
- How can i change sort category view starting from child then parent, not alphabetically
- WordPress 5.4 and higher: Filter posts by category 1 AND category 2 in API requests
- How to remove an item from a custom Walker_Nav_Menu
- WordPress Portofolio Conditional Templating – functions php
- Get WooCommerce product category list in functions.php
- WordPress category title not update in navigation menu
- Dynamically display sub-categories on primary menu without adding them
- Bulk assign posts to a category using SQL (MySQL)
- outputting taxonomy hierarchy
- Confused about category.php template – not working
- Filter custom taxonomy posts via AJAX
- Why use hierarchical taxonomies instead of many custom taxonomies?
- How to Manage and link certain custom taxonomy?
- Display Taxonomies in loop with template args
- Hide category links if there is nothing in the categories – Main Navigation submenu item
- Grouping parent categories into sections
- Match two taxonomies to display a specific content
- Conditions for single post
- Automatic menu creation for pages with categories?
- How can I add a Categories page link to a menu? [closed]
- Right way for setting categories
- Display only the latest post
- Return selected categories only in custom page meta box?
- list taxonomy based on taxonomy
- get IDs from links categories
- Multiple Parent Category URLs
- Display only one level subcategory in wordpress
- Converting Categories (with ACF fields) to custom taxonomies
- Taxonomy term RestApi data 10 rows limitions