Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created February 4, 2014 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/8806217 to your computer and use it in GitHub Desktop.
Save braddalton/8806217 to your computer and use it in GitHub Desktop.
//* Genesis grid loop
add_action( 'genesis_after_loop', 'minimum_grid_loop_helper' );
function minimum_grid_loop_helper() {
if ( is_front_page() && function_exists( 'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
'features' => 10,
'feature_image_size' => 0,
'feature_content_limit' => 0,
'grid_image_size' => 0,
'grid_content_limit' => 250,
'more' => __( '[Read more]', 'minimum' ),
) );
} else {
genesis_standard_loop();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment