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
- Can’t custom taxonomies have same terms (slugs) as categories?
- Order get_terms() By Custom Field
- Could not insert term into the database
- Weird behaviour when adding terms/term_taxonomies programmatically
- Show Post from parent category (custom taxonomy) ONLY!
- Keep active class in post page
- Are Custom Taxonomy Templates Possible?
- Get a list of Terms for a specific category
- What’s the difference between “parent” and “category_parent” in a WP_Term object?
- Update taxonomy value of post type in query
- Display name of the last child category
- PHP Fatal error: Cannot use object of type WP_REST_Response as array in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- How to know if it’s a child taxonomy?
- wp_dropdown_categories and custom taxonomy + custom post type
- How to view WordPress’ default category IDs?
- Random taxonomy category list
- Nav menu category links not showing
- Hard coded main navigation
- Exclude a category from the_category in the single post page
- One Specific Category To Permalink
- Limit amount of posts made within a custom taxonomy
- add_rewrite_endpoint returns 404 on archives
- How to add Post Format Taxonomy Archive page in the menu?
- How to get all taxonomies which can be added in menu?
- Menus don’t work after 4.4 [closed]
- Get Number of total Parent Categories for Custom Taxonomy
- Drop posts from categories in MySql
- Customize category page for different custom taxonomies
- Get posts under a category with SQL
- 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?
- add slug beside name in Admin Category Checklists
- Trying to add taxonomy to get_categories() but it’s not working. How to fix this?
- Display sibling categories on category page
- Having a template per category? Bad for server overhead?
- WP 4.7 in_category change?
- Get posts of a custom post type from category from taxonomy?
- Illegal string offset ‘taxonomy’ in
- 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
- 3.1 post formats and specific categories/custom taxonomies
- sidebar troubles, taxonomy trouble
- 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
- List of post categories only associated to another custom taxonomy
- How to show related posts of category on post within custom posttype
- WordPress category title not update in navigation menu
- Bulk assign posts to a category using SQL (MySQL)
- How to manage a dynamic multi-level page hierearchy system?
- How to assign Categories and tags inside the TinyMCE Editor for each Image?
- outputting taxonomy hierarchy
- Categories manage
- ACF Custom field not showing in Timber Taxonomy page
- Confused about category.php template – not working
- Display Taxonomies in loop with template args
- Hide category links if there is nothing in the categories – Main Navigation submenu item
- 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?
- get IDs from links categories
- Multiple Parent Category URLs
- Highlight specific menu item when custom post is page
- Display only one level subcategory in wordpress
- Taxonomy term RestApi data 10 rows limitions