Skip to content

Instantly share code, notes, and snippets.

@GaryJones
Created February 9, 2012 08:57
Show Gist options
  • Save GaryJones/1778597 to your computer and use it in GitHub Desktop.
Save GaryJones/1778597 to your computer and use it in GitHub Desktop.
Genesis Grid Loop - Amendment to show grid loop on first page only.
<?php
// Only use the grid on the first page
if ( 0 == $paged) {
// Merge the standard query for this page, and our preferred loop arguments
genesis_grid_loop( array_merge( $query_args, $grid_args ) );
} else {
query_posts( array_merge( $query_args, $grid_args ) );
genesis_standard_loop();
}
<?php
// Merge the standard query for this page, and our preferred loop arguments
genesis_grid_loop( array_merge( $query_args, $grid_args ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment