Skip to content

Instantly share code, notes, and snippets.

@grtaylor2
Created July 9, 2013 20:26
Show Gist options
  • Save grtaylor2/5960970 to your computer and use it in GitHub Desktop.
Save grtaylor2/5960970 to your computer and use it in GitHub Desktop.
Code to DELETE from home.php file to remove blog posts from Genesis Minimum home page layout.
add_action( 'genesis_loop', 'minimum_grid_loop_helper' );
function minimum_grid_loop_helper() {
if ( function_exists( 'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
'features' => 0,
'feature_image_size' => 'featured',
'feature_image_class' => 'post-image',
'feature_content_limit' => 0,
'grid_image_size' => 0,
'grid_image_class' => 'alignnone',
'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