mirror of
https://github.com/Frumph/comicpress.git
synced 2026-01-31 02:05:17 +01:00
37 lines
590 B
PHP
37 lines
590 B
PHP
<?php
|
|
/**
|
|
* Template Blog
|
|
* by Philip M. Hofer (Frumph)
|
|
* http://frumph.net/
|
|
*
|
|
* Template for the Blog.
|
|
*
|
|
* @package Comicpress
|
|
*/
|
|
|
|
get_header();
|
|
|
|
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
|
|
|
|
$blog_query = array(
|
|
'paged' => $paged,
|
|
'post_type' => 'post',
|
|
);
|
|
|
|
$wp_query = new WP_Query();
|
|
$wp_query->query( $blog_query );
|
|
|
|
if ( have_posts() ) {
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
$withcomment = 0;
|
|
get_template_part( 'content', get_post_format() );
|
|
endwhile;
|
|
comicpress_pagination();
|
|
}
|
|
|
|
wp_reset_postdata();
|
|
wp_reset_query();
|
|
|
|
get_footer();
|