Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="primary"> <!--home template -->
- <div id="content" role="main">
- <?php do_action( 'voodoo_pre_loop' ); ?>
- <?php if( is_home() && !is_paged() ) : ?>
- <?php $args = array(
- 'posts_per_page' => 1,
- 'post__in' => get_option( 'sticky_posts' ),
- 'ignore_sticky_posts' => 1
- );
- $my_query = new WP_Query( $args );
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate = $post->ID; ?>
- <?php get_template_part( 'content', 'featured' ); ?>
- <?php endwhile; ?>
- <?php wp_reset_postdata(); ?>
- <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
- <?php dynamic_sidebar( 'sidebar-2' ); ?>
- <?php endif; ?>
- <?php $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
- $more_args = array(
- 'posts_per_page' => 9,
- 'post__not_in' => get_option( 'sticky_posts' ),
- 'paged' => $paged
- );
- $my_query_2 = new WP_Query( $more_args ); ?>
- <?php endif; ?>
- <?php if ( have_posts() ) : ?>
- <?php voodoo_content_nav( 'nav-above' ); ?>
- <?php while ($my_query_2-> have_posts() ) : $my_query->the_post();
- if( $post->ID == $do_not_duplicate ) continue; ?>
- <?php $format = get_post_format();
- if ( false === $format )
- $format = 'standard';
- get_template_part( 'content', $format ); ?>
- <?php endwhile; ?>
- <?php voodoo_content_nav( 'nav-below' ); ?>
- <?php else : ?>
- <?php voodoo_else(); ?>
- <?php endif; ?>
- </div> <!-- #content -->
- </div> <!-- #primary -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement