Skip to content

Instantly share code, notes, and snippets.

@kraftbj
Created January 4, 2013 05:43
Show Gist options
  • Save kraftbj/4450225 to your computer and use it in GitHub Desktop.
Save kraftbj/4450225 to your computer and use it in GitHub Desktop.
Custom loop in Genesis
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'bk_custom_loop' );
function bk_custom_loop() {
global $paged;
$args = (array(
'paged' => $paged,
'posts_per_page' => 5 // accepts WP_Query args http://codex.wordpress.org/Class_Reference/WP_Query
));
genesis_custom_loop( $args );
}
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment