Created
December 2, 2017 08:36
-
-
Save mbrughi/53e9bd935dada4eefb423006601733b5 to your computer and use it in GitHub Desktop.
Genesis Grid Loop 2 Col
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'child_grid_loop_helper', 55 ); | |
/** Add support for Genesis Grid Loop **/ | |
function child_grid_loop_helper() { | |
if ( function_exists( 'genesis_grid_loop' ) ) { | |
genesis_grid_loop( array( | |
'features' => 0, | |
'feature_image_size' => 'featured-image', | |
'feature_content_limit' => 0, | |
'grid_image_size' => 'grid-image', | |
'grid_content_limit' => 0, | |
'more' => __( '[Read more]', 'minimum' ), | |
) ); | |
} | |
else { | |
genesis_standard_loop(); | |
} | |
} | |
genesis() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment