Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $do_not_duplicate = array();
- $my_query = new WP_Query(array('posts_per_page' => 3, 'post__in' => get_option( 'sticky_posts' ), 'ignore_sticky_posts' => true ) );
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate[] = $post->ID; ?>
- do stuff 1 <?php the_title(); ?>
- <?php break; endwhile; ?>
- <?php
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate[] = $post->ID; ?>
- do stuff 2 <?php the_title(); ?>
- <?php endwhile; ?>
- <?php wp_reset_query(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement