'date', 'order' => 'DESC', 'post_type' => array( 'post', 'page' ), 'posts_per_page' => $pane_count, 'ignore_sticky_posts' => 1, ); // args specific to latest posts if ( $graphene_settings['show_post_type'] == 'latest-posts' ){ $args_merge = array( 'post_type' => array( 'post' ), ); $args = array_merge( $args, $args_merge ); } // args specific to latest posts by category if ( $graphene_settings['show_post_type'] == 'cat-latest-posts' ){ $args_merge = array( 'category__in' => graphene_object_id( $graphene_settings['homepage_panes_cat'], 'category' ), ); $args = array_merge( $args, $args_merge ); } // args specific to posts/pages if ( $graphene_settings['show_post_type'] == 'posts' ){ $post_ids = $graphene_settings['homepage_panes_posts']; $post_ids = preg_split("/[\s]*[,][\s]*/", $post_ids, -1, PREG_SPLIT_NO_EMPTY); // post_ids are comma seperated, the query needs a array $post_ids = graphene_object_id( $post_ids ); $args_merge = array( 'post__in' => $post_ids, 'orderby' => 'post__in' ); $args = array_merge( $args, $args_merge ); } // Get the posts to display as homepage panes $panes = new WP_Query( apply_filters( 'graphene_homepage_panes_args', $args ) ); $count = 0; ?>
have_posts() ) : $panes->the_post(); $count++; $alpha = $omega = false; if ( $count % 2 ){ $alpha = true; } else { $omega = true; } ?>
id="homepage-pane-">