Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $postIDs = array( "1928", "2066", "2009" );
- $front_query_args = array(
- 'posts_per_page' => -1,
- 'post__in' => $postIDs,
- 'ignore_sticky_posts' => 1
- );
- $front_query = new WP_Query( $front_query_args ); ?>
- <?php if ( $front_query->have_posts() ) : ?>
- <?php /* Start the Loop */ ?>
- <?php while ( $front_query->have_posts() ) : $front_query->the_post(); ?>
- ... fill in whatever is appropriate ...
- <?php endwhile; ?>
- <?php else : ?>
- ... do something else ...
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement