1,
) );
// Count the number of categories that are attached to the posts
$all_the_cool_cats = count( $all_the_cool_cats );
set_transient( 'all_the_cool_cats', $all_the_cool_cats );
}
if ( '1' != $all_the_cool_cats ) {
// This blog has more than 1 category so thebox_categorized_blog should return true
return true;
} else {
// This blog has only 1 category so thebox_categorized_blog should return false
return false;
}
}
/**
* Adds custom classes to the array of body classes.
*/
function thebox_body_classes( $classes ) {
// Adds a class of group-blog to blogs with more than 1 published author
if ( is_multi_author() ) {
$classes[] = 'group-blog';
}
return $classes;
}
add_filter( 'body_class', 'thebox_body_classes' );