Skip to content

Instantly share code, notes, and snippets.

@billerickson
Last active October 24, 2015 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save billerickson/a113975602d013532546 to your computer and use it in GitHub Desktop.
Save billerickson/a113975602d013532546 to your computer and use it in GitHub Desktop.
<?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