Change Grid Arguments for a specific category

Go to Genesis > Grid Loop Settings to set the site-wide defaults. Then on the category that you want to display differently, create a template file (category-{category slug}.php) and use the genesis_grid_loop_args filter to modify the settings.

In the below example, I’m assuming you have a 3 column grid with 0 features and 9 teasers sitewide. On a category called ‘dog’ you want it changed to 2 columns with 0 features and 10 teasers. This would be the content of your category-dog.php file:

/* Template file for the "Dog" category */
* Customize Grid Loop
* Display 10 posts in 2 columns
function be_grid_loop_for_dog_category( $args ) {
$args = array(
'features_on_front' => 0,
'teasers_on_front' => 10,
'features_inside' => 0,
'teasers_inside' => 10,
'teaser_columns' => 2,
return $args;
add_filter( 'genesis_grid_loop_args', 'be_grid_loop_for_dog_category' );

Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk