I don’t know if this is a wordpress issue of it is related to the template. Anyway, I’ve found that if your department name is different from the slug it won’t work at all.
In my case, I have a department called ‘Windows Phone’ and the slug is ‘windowsphone’. Whenever I use the taxonomy.php template for showing this specific department it won’t show nothing.
As far as I can see, the problem is in line 71:
$args_department = array( ‘post_type’ => ‘portfolio’, ‘department’ => single_cat_title( “”, false ), ‘posts_per_page’ => -1 );
single_cat_title will use the title instead of the slug so here is the problem if they both are different.
My solution is to change this line for this one:
$args_department = array( ‘post_type’ => ‘portfolio’, ‘department’ => $cat, ‘posts_per_page’ => -1 );
I will really appreciate if you fix this issue on next releases.