Created
July 28, 2014 19:55
-
-
Save awhedbee22/cd0a739f4bf4141d7763 to your computer and use it in GitHub Desktop.
Wordpress Loop
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 | |
$topTwelveCoral = array( | |
'post_type' => 'NAME', | |
'posts_per_page' => 3 | |
); | |
$my_query = new WP_Query( $topTwelveCoral ); | |
while ($my_query->have_posts()) : $my_query->the_post(); | |
$do_not_duplicate = $post->ID; | |
?> | |
<h2><?php the_title(); ?></h2> | |
<?php endwhile; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment