remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'prefix_do_loop' );
/**
* Outputs a custom loop.
*
* @global mixed $paged current page number if paginated
* @return void
*/
function prefix_do_loop() {
global $paged;
// Fix for the WordPress 3.0 "paged" bug.
$paged = 1;
if ( get_query_var( 'paged' ) ) {
$paged = get_query_var( 'paged' );
}
if ( get_query_var( 'page' ) ) {
$paged = get_query_var( 'page' );
}
$paged = intval( $paged );
// accepts any wp_query args.
$args = (array(
'post_type' => '',
'category_name' => 'blog', // use category slug
'order' => 'ASC',
'orderby' => 'title',
'paged' => $paged,
'posts_per_page' => 5
));
genesis_custom_loop( $args );
}