Hello,
Thank you for your suggestion. It works, but not completely … for example it now shows 230 in each language, instead, it should be: 77 in IT, 76 in EN, 76 in CN.
It is strange then that it shows 230 when the sum of all is 229. In any case, I would like to show the correct number of each language.
I think I should change the central part of the above code, this:
$total = wp_count_posts('etheme_portfolio')->publish;
return $total;
with the this code that shows the number in the buttom:
$i = 0;
while ( $loop->have_posts() ) : $loop->the_post(); $i++; endwhile;
echo $i;
But if I insert this last part in place of the beginning code, the page gives me an error.
Any idea?