Displaying two different menus base on the archive is no problem using is_post_type_archive()
What you are looking for is essentially the link to an term archive that only contains posts of a certain post type. Something like /index.php?term=US&post_type=pub
. As far as I’m aware of WordPress doesn’t offer this natively.
You will have to create your own page template and rewrite rules to make it display like /restaurants/fr
.
I think this questions covers enough about that:
How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
Related Posts:
- Is it possible to have an index page for taxonomy term for each custom post type it is assigned to?
- How to get_queried_object on multiple objects?
- Custom Post Type / Taxonomy Slug / Post Title with post type archive
- Hide child term posts on parent term pages
- Posts per Page on custom Taxonomy Template
- Post type archive page not working
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- Archive page for taxonomy of custom post type
- Should I change these content meta types before building complex archive page?
- Getting taxonomy terms used by custom post type
- Archive or taxonomy pages not working for custom post type
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- How to create archive page for taxonomy terms within custom post type
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- taxonomy template for custom post type the same as the archive
- Display only post types that are direct children of the current taxonomy
- How can I filter by taxonomy on a custom post type’s page?
- Custom template won’t load for a custom post type (custom permalinks used)
- Custom post type templating problem
- Create template for taxonomy results limited by Custom Post Type
- Extending AZIndex plugin to use custom post types and custom taxonomies
- Use Custom Post Type archive page for the taxonomies term archive page
- Display custom post type category, while in a CPT category, then the posts beneath
- Number of Custom Post Types published are not being shown in the custom page
- posttype/taxonomy/term archive page 404 error
- Custom Post Archive is not working
- What’s the name of the custom post type yearly archive template?
- Alphabetically sort a taxonomy.php template by post title
- Custom Permalinks For CPT and pages with parent. Advanced WordPress
- Permalink problems with custom post type and custom taxonomy
- sort CPT on Custom Taxonomy Archive page
- Use the custom post type archive for taxonomies?
- Custom Post type date archive for custom taxonomy
- Show categories of custom post type and not all posts
- Query Posts that have Custom Taxonomy
- Custom Post Type Custom Archive Page Not Working
- Getting custom taxonomy posts on archive page
- Archive page for custom post type and custom taxonomy
- Custom post type category permalinks and archive pages
- Archive page of CPT’s custom Taxonomy
- Getting Same Description in All the Custom Taxonomy Posts
- Displaying all posts by category and showing content on click
- pagination problem listing custom post types of taxonomy in wordpress
- Posts per Page on custom Taxonomy Template
- Static Front Page not working for custom theme
- Building Link List for Custom Tax
- Custom taxonomy with custom post type archive page
- Custom Post Type / Taxonomy / Term – what template to use to avoid 404-page?
- Custom post type post_type_link gives “page not found” on any other custom post type
- Custome post type “tags” pick default archive instead of custom post type archive
- Customize url from the_terms
- Custom post types not displaying per category
- Help with Multi Level Category Archive Page
- Custom post type archive page not showing on archive-posttype.php
- Custom taxonomy in custom post type archive with pagination
- Pagination fault in custom post type archive page [duplicate]
- Why is this custom post type defaulting to archive.php?
- title tag for custom post type remove taxonomy name from title tag
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- Custom taxonomy archive page not routing?
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected
- Custom post type yearly/ monthly archive permalinks
- custom post type or taxonomy
- Changing the priority of a custom taxonomy’s metabox
- Admin to user notices – best practices?
- Custom Post Type archive giving 404
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- How can I show recent posts from same taxonomy as the post currently being viewed?
- Group custom posts by custom taxonomy names
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- Wrong request query on cpt and tax
- Cannot add category or custom taxonomy from admin. WordPress site is hosted in Windows 16 server via IIS. No XAMPP or WAMP
- Listing posts under primary and secondary taxonomies
- Listing custom terms in custom post meta
- How do I display a list showing custom post types nested within a taxonomy?
- Display posts with tag for custom post type only
- How to show all taxonomies within custom post type loop
- Showing taxonomy terms on custom post type
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- How to list custom post types on a custom post type page?
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- custom post type or taxonomy, which approach is better?
- Custom Post Type with Different Sets of Post Content?
- Add a class to a div if custom post type has specific terms?
- Custom post type paging return home page
- Basic CPT Question About Categories
- Custom taxonomy returns 404 even with saving permalinks
- Custom post type shortcode with taxonomy attribute not working and no errors
- Redirect Custom Post Type from Child Taxonomies
- Meta_query by date for Events archive
- Show tags of custom post types in WordPress
- Show posts for current taxonomy
- WordPress get all post with like in terms [duplicate]
- Query Pulling the same post twice
- Cannot retrieve Custom Taxonomies (Disappeared)
- Templates list in “Page Attributes” metabox is inaccurate
- Loop multiple taxonomy in custom post
- Stop Custom post type from being searched via URL
- Get all active posts that are tied to a custom taxonomy for a custom post type