forked from mirror/_s
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.
This commit is contained in:
parent
ad2a2cd9b9
commit
39a256b183
|
@ -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.
|
||||
|
|
Reference in New Issue