Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created May 3, 2014 23:59
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/de7c973d6cefc793a71a to your computer and use it in GitHub Desktop.
Save braddalton/de7c973d6cefc793a71a to your computer and use it in GitHub Desktop.
<?php
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'child_grid_loop_helper' );
/** Add support for Genesis Grid Loop **/
function child_grid_loop_helper() {
if ( function_exists( 'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
'features' => 10,
'feature_image_size' => 0,
'feature_image_class' => 'alignleft post-image',
'feature_content_limit' => 0,
'grid_image_size' => 0,
'grid_image_class' => 0,
'grid_content_limit' => 250,
'more' => __( '[Continue reading]', 'genesis' ),
) );
} else {
genesis_standard_loop();
}
}
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment