Created
May 7, 2012 21:19
-
-
Save micahwave/2630535 to your computer and use it in GitHub Desktop.
wp_query derp
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
| // backend, gather the data | |
| if( have_posts() ) { | |
| get_template_part( 'derp' ); | |
| } | |
| wp_reset_query(); | |
| // front-end, derp.php | |
| <?php while( have_posts() ) : the_post(); ?> | |
| <?php the_title(); ?> | |
| <?php endwhile; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment