
Best Answer Cheren-dow , 06 April 2014 - 20:28
Это условие
if (count($childCategories) >= 10) { // кол-во категорий break; } $i++;
не должно быть внутри
if ($showCount) { $childItemCount = count($childCategory->item_ids); if (count($childCategories) >= 5) { // кол-во категорий break; } $i++; }
Нужно его вынести
if ($showCount) { $childItemCount = count($childCategory->item_ids); } if (count($childCategories) >= 5) { // кол-во категорий break; } $i++;Go to the full post
