From 39a256b183ec17f55168bb15f88f710214d270aa Mon Sep 17 00:00:00 2001 From: Mohammad Jangda Date: Mon, 24 Mar 2014 16:46:38 +0000 Subject: [PATCH] cool-cats: Limit number of categories fetched We only need to know if there is more than one category so only fetch a maximum of two categories. The rest of the categories are all gravy. --- inc/template-tags.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/template-tags.php b/inc/template-tags.php index 7629210..3c95df0 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -104,6 +104,7 @@ function _s_categorized_blog() { $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.