Archive pages A & B already exist as your brand and type term archives, you can style those differently by creating taxonomy-brand.php
and taxonomy-type.php
templates.
The remaining piece is two different single product views. The simplest way to achieve that would be to append a GET var onto the permalinks:
http://domain.com/product/someproduct/?origin=brand
http://domain.com/product/someproduct/?origin=type
WordPress has the built in function add_query_arg
to help add that for you:
echo add_query_arg( 'origin', 'brand', get_permalink() );
Then in your single post template you can check the value of $_GET['origin']
to determine what to display in the sidebar.
Related Posts:
- Is it possible to have an index page for taxonomy term for each custom post type it is assigned to?
- Archive or taxonomy pages not working for custom post type
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- Getting custom taxonomy posts on archive page
- Taxonomy: Why ‘with_front’ => false DOES NOT WORK?
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- Exclude from search all custom posts which are NOT in a taxonomy term
- Custom SQL Query on Custom Post Type. Order by Taxonomy?
- How to get_queried_object on multiple objects?
- Custom Post Type / Taxonomy Slug / Post Title with post type archive
- Custom Post Type with Nested Taxonomy and Template Files
- 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
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Trying to manage templates on a blog with lots of custom taxonomies
- How to create archive page for taxonomy terms within custom post type
- Custom post type and taxonomy permalinks – Structure
- taxonomy template for custom post type the same as the archive
- Display only post types that are direct children of the current taxonomy
- Custom Taxonomy term archive template
- How can I filter by taxonomy on a custom post type’s page?
- $wpdb: Counting posts corresponding to 3 terms in 3 different taxonomies
- Custom template won’t load for a custom post type (custom permalinks used)
- Get posts by querying taxonomy and certain terms of the taxonomy?
- Custom Post Type Taxonomy Filters
- 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
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- Number of Custom Post Types published are not being shown in the custom page
- How to conditionally redirect to the post from a taxonomy page?
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- posttype/taxonomy/term archive page 404 error
- How to group posts and get a mixed posts and groups view?
- Custom Post Archive is not working
- What’s the name of the custom post type yearly archive template?
- How to list tags from custom post type attachments?
- Alphabetically sort a taxonomy.php template by post title
- Permalink problems with custom post type and custom taxonomy
- sort CPT on Custom Taxonomy Archive page
- How to get_term_meta on single custom post?
- 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
- Archive page for custom post type and custom taxonomy
- How to List Custom Post Type Titles Based on Theirs Taxonomy Terms Inside a Nested Loop
- Custom Post type Query by Taxonomy
- Single.php for Custom Post Type > Taxonomy > Term
- Custom post type category permalinks and archive pages
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- CPT archive page – show one post from each taxonomy term
- Displaying custom taxonomy menu in custom post type archive
- Custom post types templates
- Archive page of taxonomy returns a 404 error
- ACF – Retrieve custom taxonomy from a relationship field
- 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
- Display Custom Field or Custom Taxonomy in front page /post/product
- pagination problem listing custom post types of taxonomy in wordpress
- Posts per Page on custom Taxonomy Template
- WP_Query not using custom taxonomy categories on custom post type
- 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?
- taxonomy – templates are not loading
- Showing taxonomies with terms that are attached to custom post
- Getting all custom post taxonomies and exhibiting only part of them
- Templates for CPT not working
- Single taxonomy for different custom post types
- Custom post type post_type_link gives “page not found” on any other custom post type
- Error get_posts with Custom Taxonomy and OR relation
- 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
- Get list of CPT posts in *current* post’s taxonomy term
- Pagination fault in custom post type archive page [duplicate]
- tax_query showing no results
- Linking custom taxonomies and posts
- Custom post type category page not working
- Why is this custom post type defaulting to archive.php?
- Storing/querying custom date data
- title tag for custom post type remove taxonomy name from title tag
- List a custom taxonomy’s terms, with links, on the taxonomy page
- 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 taxonomy meta fields