after some trials I’ve got one solution that seems to be good but I need some tweaking help
<ul class="list-ensemble">
<?php
$terms = get_terms("production_co_type");
$count = count($terms);
if ( $count > 0 ){
echo "<ul>";
foreach ( $terms as $term ) {
echo '<li class="title">' . $term->name . '</li>';
$args = array (
'post-type'=> 'shows',
'orderby'=> 'title',
'order'=> 'ASC',
'post_per_page'=> -1,
'production_co_type'=> $term->name
);
query_posts($args);
while (have_posts()) : the_post();
echo get_template_part( 'content', "sort_shows" );
endwhile;
wp_reset_query();
}
echo "</ul>";
}
?>
</ul>
It seems everyting works good but the fact that I got only 10 elements “per taxonomy”.
I can’t understand why.
Anyone can help?
Thanks again… I think I’m gonna try something even with the “get_post” function.
Bye
Carletto
EDIT
I FINALLY GOT IT!!!
simply add
'nopaging'=> 'true',
to the $args array and got exactly what I’m looking for!
I thank you everyone who helped me. Hope you could give some comment to my solution to improve the quality of my code 😉
Thanks again.
Bye
Carletto