Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $my_query = null;
- $my_query = new WP_Query($args);
- if( $my_query->have_posts() ) {
- while ($my_query->have_posts()) : $my_query->the_post(); ?>
- <div class="faculty-post">
- <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
- </div><!-- closes .faculty-post -->
- <div class="clear"></div>
- <?php endwhile;
- } //faculty post loop ends?>
- <?php wp_reset_query(); // Restore global post data stomped by the_post(). ?>
Add Comment
Please, Sign In to add comment