Skip to content

Instantly share code, notes, and snippets.

@billerickson billerickson/category-dog.php Secret
Last active Oct 24, 2015

Embed
What would you like to do?
<?php
/* 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' );
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.