Well I got there, my public brain functions for all to see, hopefully someone somewhen will pass this was and find it useful.
The code;
// First get the type
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
$type = $term->slug;
// we need to do some comparisons, here's the variable
$this_instance = "";
// loop through all 'type1' posts
while ( have_posts() ) : the_post();
$group_terms = get_terms( 'group' );
//print_r($group_terms);
// then loop through all terms for this post
foreach ($group_terms as $group_term) :
if (has_term($group_term, 'group')) {
$first_instance = $group_term->slug;
// if this is the first do something
if ($this_instance !== $first_instance) { ?>
<li><?= $group_term->name; ?></li>
<? $this_instance = $first_instance;
}
}
endforeach;
endwhile;
Related Posts:
- Include and Exclude Taxonomies From Archives & Feeds Using ‘pre_get_posts’
- Check if current term is a child of another term
- How to hide custom taxonomy archives same way as hiding custom post types?
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- Page queried instead of a custom taxonomy
- Using a different template per Custom Taxonomies for single term archive pages
- Creating an Archive using a Custom Taxonomy
- Display direct children of the current custom taxonomy in taxonomy.php template
- Date archive permalinks for custom taxonomy
- Taxonomy archive showing no results
- Dynamic loading of Archive content based on custom taxonomy term name
- orderby meta_value breaks taxonomy term archives
- Why is the custom taxonomy archive page redirecting me to a single post? [closed]
- How to have two different versions of a tag/category/taxonomy archive page?
- Automatically Give All Custom Post Types a Pre-Set Category [duplicate]
- How to add Post Format Taxonomy Archive page in the menu?
- How does WordPress Parent-Child Taxonomy actually Works?
- Custom taxonomy archive shows 404 error
- Custom Taxonomy index/archive hierarchy
- Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown
- Custom Taxonomy Term Archive Page Template that Filters 2 or more Taxonomies
- How to use multiple archive templates for a taxonomy?
- how does the wordpress rest API work
- Taxonomy archive template that shows posts from more than one taxonomy
- Custom Taxonomy List with Children
- why the archive of custom taxonomy term shows nothing?
- Can I output a custom taxonomy as a submenu in the site navigation menu?
- Add terms to a taxonomy archive from within the same taxonomy
- Custom Taxonomies Archive Page 404
- How to create archive pages for metadata query generated posts (so without taxonomy)?
- How to create a completely functioning separate archive for posts from only 1 or 2 specific categories
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- Hierarchical taxonomies in permalink cause 404 for sub term archive
- How to get a terms and posts associated with another term?
- Change the Page Title of the Archive Page for Portfolio Tags
- Custom taxonomy return 404
- What’s the url queryvar for a taxnomy archive?
- Multi level archive
- Custom Taxonomy Archives Page Errors
- index.php Not Showing Custom Posts / Terms
- Custom Taxonomy Archive Page for Parents AND Children?
- Redirect or Prevent Viewing of Custom Taxonomy’s Archives?
- Creating a Taxonomy Page [duplicate]
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- Insert code on specific taxonomy archives
- Permalinks not working on MU network with domain mapping
- Custom Taxonomy Archive URL rewrite
- Can you orderby slug in a taxonomy archive page using WP_Query?
- More than one Hierarchical Taxonomy and SEO
- Getting Catategory / Taxonomy Description on Non-archive Pages
- Taxonomies starting with a hyphen (minus) to assign B.C. dates to a post
- Custom taxonomy archive empty
- Why my archive title isn’t showing?
- Creating a custom archive page for WooCommerce products based on tags
- get_the_term_list without links in 3.1
- get_term_children for immediate children only (not grandchildren)
- Creating a non-removable taxonomy term
- Is it possible to use one slug for Multiple Taxonomies?
- get taxonomy terms for parent and child
- On Taxonomy Template page, want to add Post_Type
- Separator for multiple terms
- The next_posts_link() show me a aditional page in blank
- Help building array hierarchically with taxonomies (to get posts)
- Echo custom taxonomy term name
- Next and Previous links on a single taxonomy page only link to same term
- Why does WP rename similar “term name”-slugs in separate taxonomies?
- Getting the selected terms for custom taxonomies in the editor
- Change permalink of post if it belongs to custom taxonomy
- Set custom post type terms by id without knowing taxonomy
- How to determine the depth of a term in a custom taxonomy?
- How do I Use Multiple Loops with WP_Query?
- $wpdb query a post type within a specific taxonomy term while ordering posts by custom meta value?
- Modify “View” in admin panel for custom taxonomy
- User: Editor, can’t see edit taxonomy screen
- How to get my post title to work with an apostrophe (‘s)?
- Is it possible to store Json data in post_meta and manipulate
- How to create a dependent drop-down and options in dropdown must be manageable from admin panel
- Updating / Saving items generated by wp_terms_checklist on frontend
- Update table wp_term_taxonomy.count after INSERT INTO via SQL
- Exclude taxonomy term from all loops, but having it on widget
- Get all attachments by custom taxonomy – term
- saving meta/custom field to tag
- Correctly order the hierarchy of custom taxonomy when displaying terms
- Archive page for custom taxonomy grouped by month
- Replace taxonomy term with an image in a custom loop
- Show single Child Category on Custom Post
- unable to save custom taxonomy terms in a custom-built metabox in wp-admin
- How to group non-hierarchical tags?
- How to combine taxonomies into URL?
- Fill New Taxonomies
- How do I show the parent term on a custom taxonomy template (not the ID)?
- Display taxonomies for custom post type
- Custom Taxonomy – Dropdown
- How to show selected check box vendors on front end home page?
- custom taxonomy don’t return a value
- Where to put a migration script to switch post information?
- Gravity prerender taxonomy [closed]
- One taxonomy template for all categories?
- Error in Custom Taxonomy UI
- Search and filter with custom field in taxonomy