Guest User

Untitled

a guest
Jan 12th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: WP_Query Template
  4. */
  5.  
  6. get_header(); ?>
  7.  
  8. <div id="primary" class="content-area">
  9. <main id="main" class="site-main" role="main">
  10.  
  11. <?php
  12. // Start the loop.
  13. while ( have_posts() ) : the_post();
  14.  
  15. // Include the page content template.
  16. get_template_part( 'content', 'page' );
  17.  
  18. // End the loop.
  19. endwhile;
  20. ?>
  21. <?php
  22.  
  23. wp_reset_postdata();
  24.  
  25. $args = array(
  26. 'category_name' => 'music'
  27. );
  28.  
  29. $the_query = new WP_Query( $args);
  30.  
  31.  
  32.  
  33. ?>
  34.  
  35. <?php
  36. // Start the loop.
  37. while ( have_posts() ) : the_post();
  38.  
  39. // Include the page content template.
  40. get_template_part( 'content', 'page' );
  41.  
  42.  
  43.  
  44. // End the loop.
  45. endwhile;
  46. ?>
  47.  
  48. </main><!-- .site-main -->
  49. </div><!-- .content-area -->
  50.  
  51. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment