Last active
January 2, 2016 23:39
-
-
Save livercake/8378086 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$newLoop = new WP_Query(); | |
$newLoop->query('showposts=3'); | |
while ($newLoop->have_posts()) : $newLoop->the_post(); ?> | |
<!-- do stuff here in HTML --> | |
<?php endwhile; ?> | |
<?php wp_reset_postdata(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment