This file contains hidden or 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
function staff_do_grid_loop() { | |
$args = array( | |
'post_type' => 'page', | |
'meta_key' => 'staff', | |
'posts_per_page'=> 4, | |
'orderby' => 'menu_order', | |
'order' => 'ASC', | |
'paged' => get_query_var( 'paged' ), | |
); |
This file contains hidden or 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
function staff_do_grid_loop() { | |
$args = array( | |
'post_type' => 'page', | |
'meta_key' => 'staff', | |
'orderby' => 'menu_order', | |
'order' => 'ASC', | |
'paged' => get_query_var( 'paged' ), | |
'posts_per_page'=> 3, | |
); |
This file contains hidden or 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
add_action( 'genesis_before_loop', 'child_maybe_do_grid_loop' ); | |
function child_maybe_do_grid_loop() { | |
// Amend this conditional to pick where this grid looping occurs | |
if ( is_page('2') ) { | |
remove_action('genesis_before_post_content', 'genesis_post_info'); | |