'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['post_type'] = array( 'post' ); // args specific to latest posts by category if ( $graphene_settings['homepage_panes_cat'] ) $args['category__in'] = graphene_object_id( $graphene_settings['homepage_panes_cat'], 'category' ); // 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['post__in'] = $post_ids; $args['orderby'] = 'post__in'; } // Get the posts to display as homepage panes $panes = new WP_Query( apply_filters( 'graphene_homepage_panes_args', $args ) ); $count = 0; do_action( 'graphene_before_homepage_panes' ); ?>
have_posts() ) : $panes->the_post(); $count++; ?>