diff --git a/inc/template-tags.php b/inc/template-tags.php index c852eb7..3c95df0 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -103,6 +103,8 @@ function _s_categorized_blog() { // Create an array of all the categories that are attached to posts. $all_the_cool_cats = get_categories( array( 'hide_empty' => 1, + 'fields' => 'ids', + 'number' => 2, // we only need to know if there is more than one category ) ); // Count the number of categories that are attached to the posts.