I have a custom post type 'products' and custom taxonomy of 'maker' that i have connected to that cpt 'products'. I have written this code :
<?php $myproducts = new WP_Query(array('post_type' => 'products', 'maker'=>'samsung')); ?>
<?php while($myproducts->have_posts()) : $myproducts->the_post(); ?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
and this allows me to loop products from one of added makers (in this case samsung). What I am actually trying to do is to create a page that will loop through all of items from 'maker' taxonomy that a client might add to it. It would be great if I could use these elements of the 'maker' taxonomy to show lists of all 'products' that belong to those makers. Basically loop the taxonomy elements and use those results to loop all products that belong to those makers. Sorry if i'm being redundant, I'm just trying to be as specific as a beginner might be. Thank you all.