Created
January 4, 2013 05:43
-
-
Save kraftbj/4450225 to your computer and use it in GitHub Desktop.
Custom loop in Genesis
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', '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