How about creating those categories Cars, Tvs, Trains and Ships as sub categories of locations?
Then you could have a navigation menu containing parent categories i.e Briton, Manchester etc.
Once a parent category is navigated to you could have a menu that uses the get_terms() function with the parent
argument set to the current location term ID that lists all sub categories of the current location. Something like this.
$tax = get_query_var('taxonomy' );
$current_location_id = get_term_by( 'slug', get_query_var( 'term' ), $tax );
$terms = get_terms( $tax, array(
'parent' => $current_location_id
) );
Related Posts:
- get_categories for custom post type with a specific custom taxonomy attached
- How can I add the featured image functionality to a custom taxonomy?
- Combine two taxonomies in a hierarchical tree
- How can I select a primary category?
- How to make custom taxonomy check boxes like ‘Categories’
- How to create non-unique sub-category slugs?
- How to get next previous category in same taxonomy?
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Getting WordPress custom taxonomy/category?
- Display empty taxonomy terms with get_terms()
- How to get the number of child categories a specific parent category has?
- How can I convert some categories to a custom taxonomy?
- Get multidimensional array that reflects category hierarchy
- Change existing taxonomy settings when using custom taxonomy
- How to get the id from the custom category?
- How can I edit the ‘Most Used’ tab in the categories meta-box to show another custom taxonomy?
- Display custom taxonomy attached to the post on post single page
- Question on using custom structures for categories
- Admin: Navigation Menus do not show empty categories/taxonomies in the list’s search tab
- Echo text using is_tag
- How could I write a get_categories_by_year() function?
- How to get posts using category slug in ClassiPress?
- How to set the same base url for two different taxonomies?
- Get WooCommerce product category list in functions.php
- Why use hierarchical taxonomies instead of many custom taxonomies?
- Renaming default category taxonomy?
- How to Manage and link certain custom taxonomy?
- Display List of Categories Within a Custom Taxonomy
- How to add a post with new Taxonomy without assigning to default category?
- Chained drop-down menu for custom taxonomy using chained.js
- Converting Categories (with ACF fields) to custom taxonomies
- How can I get the categories and subcategories separately?
- get_term returns different results, sometimes empty, sometime the correct list
- Customize category page for different custom taxonomies
- How can I improve this taxonomy treating approach?
- Get posts from specific taxonomy term
- Get posts under a category with SQL
- How many categories can WordPress handle before performance suffers?
- Custom taxonomy template for categories
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Redirect to another page using contact form 7? [closed]
- Targeting Parent Category Pages
- Wacky taxonomy in wordpress
- Create menu locations for each category in wordpress
- get_terms function not returning anything
- Why custom taxomony not showing when create a post?
- Limit categories and it’s subcategories for specific group of users
- Ive got a term (get_term_by) but now I want to filter it by a category it is in?
- How to display parents category and child category separately for a specific post?
- Building Menu from Woocommerce Product Categories
- Include WooCommerce product to all child categories
- Hooking to walker_nav_menu_start_el to insert list of subpages
- Show subcategories on a parent category page
- Notice: Trying to get property of non-object in : custom fields category
- add slug beside name in Admin Category Checklists
- get_category_link() for custom post type does not include custom slug rewrite?
- Targeting categories in custom fields
- Target a specific category from a custom taxonomy?
- Trying to add taxonomy to get_categories() but it’s not working. How to fix this?
- How can I create an automatic drop down menu with my tags?
- Get Categories Where Taxonomy Equals ‘n’
- Give Children Unique ID’s
- Change div background acording to the selected category
- 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?
- WordPress list categories dropdown with parent-child relation and child under it’s parent
- Having a template per category? Bad for server overhead?
- WP REST API not retrieving all categories
- How to display a value inside a post with a specified category from a category custom field? [closed]
- Some categories missing on wp-admin/edit-tags.php?taxonomy=category
- List just subcategory and products of active category page in Woocommerce
- List a maximum of ‘x’ product categories with qty of ‘y’ in each column
- custom page for custom Taxonomy
- Grandchild Term Things Grandfather Term is It’s Parent
- Corrupted nav-menu?
- Eliminate word from $term->name
- What Must to Display the “mysite.com/category” URL?
- Searching for a category returns nothing if category is empty
- function query_posts disabling current_page_menu class
- Custom page category taxonomy 404
- WP 4.7 in_category change?
- Get posts of a custom post type from category from taxonomy?
- Filter By Category Dropdown List With Custom Taxonomies
- query_posts by category_name and custom taxonomy
- Show different menu on each woocommerce category page
- How to get posts by category and by choosing a taxonomy term?
- Is it possible to create an alias/custom taxonomy for a category name?
- Illegal string offset ‘taxonomy’ in
- Style a category from category list
- Theme for subcategories
- Multiple categories for one menu item?
- How to get category id’s which are added in main menu?
- Change categories count to include media attachments
- How to Sync Menu, Widgets and other masters from Main Website to its Sub Site
- How to schedule categories?
- Link from navbar to categories
- Showing HTML if Post is In Certain Taxonomy Term
- How to get selected taxonomy or category ID if using custom walker?
- Pagination doesn’t work on multiple categories