Just skip the excluded category in your foreach
:
foreach ( $cat_array as $cat ) {
if ( $cat != EXCLUDED_CAT_ID ) {
// Output
}
}
Just skip the excluded category in your foreach
:
foreach ( $cat_array as $cat ) {
if ( $cat != EXCLUDED_CAT_ID ) {
// Output
}
}