Want more features on Pastebin? Sign Up, it's FREE!
Guest

blog.php

By: a guest on Nov 17th, 2013  |  syntax: None  |  size: 0.42 KB  |  views: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /*
  3. Template Name: Blog
  4. */
  5. get_header();
  6.  
  7. $blog_query = array(
  8.                 'paged' => get_query_var('paged'),
  9.                 'post_type' => 'post'
  10.                 );
  11.                
  12. $blogpage = new WP_Query(); $blogpage->query($blog_query);
  13. if ($blogpage->have_posts()) {
  14.         while ($blogpage->have_posts()) : $blogpage->the_post();
  15.                 $withcomment = 0;
  16.                 get_template_part('content', get_post_format());
  17.         endwhile;
  18.         comicpress_pagination();
  19. }
  20.  
  21. get_footer();
clone this paste RAW Paste Data