Created
August 10, 2013 17:12
-
-
Save raaar/6201221 to your computer and use it in GitHub Desktop.
Wordpress - Query Posts
This file contains 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 | |
$args = array( | |
'post_type'=> 'work' | |
); | |
query_posts( $args ); | |
// The Loop | |
while ( have_posts() ) : the_post(); | |
echo '<li>'; | |
the_title(); | |
echo '</li>'; | |
endwhile; | |
// Reset Query | |
wp_reset_query(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment