Created
August 20, 2014 15:36
-
-
Save laurenclark/9d4232cd5f36ad7c0bf1 to your computer and use it in GitHub Desktop.
Custom Fields WP_Query Loops
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
$args = array( | |
'post_type' => 'post_type', | |
'orderby' => 'date', | |
'order' => 'ASC', | |
'posts_per_page' => 3 | |
); | |
$reference = new WP_Query( $args ); | |
?> | |
<?php /* Start loop */ ?> | |
<?php if ( have_posts() ) : while ( $reference->have_posts() ) : $reference->the_post(); ?> | |
<?php endwhile; endif; ?> | |
<?php /* End Loop */ ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment