sweedy/templates/blog-sidebar-left.php

58 lines
1.4 KiB
PHP
Raw Permalink Normal View History

2018-11-22 11:32:45 +00:00
<?php
/**
Template Name: Blog Left Sidebar
**/
get_header();
get_template_part('sections/specia','breadcrumb'); ?>
<!-- Blog & Sidebar Section -->
<section class="page-wrapper">
<div class="container">
<div class="row padding-top-60 padding-bottom-60">
<!--Blog Detail-->
<?php get_sidebar(); ?>
<div class="<?php specia_post_column(); ?>" >
<?php
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
$args = array( 'post_type' => 'post','paged'=>$paged );
$loop = new WP_Query( $args );
?>
<?php if( $loop->have_posts() ): ?>
<?php while( $loop->have_posts() ): $loop->the_post(); ?>
<?php get_template_part('template-parts/content','page'); ?>
<?php endwhile; ?>
<div class="paginations">
<?php
$GLOBALS['wp_query']->max_num_pages = $loop->max_num_pages;
// Previous/next page navigation.
the_posts_pagination( array(
'prev_text' => '<i class="fa fa-angle-double-left"></i>',
'next_text' => '<i class="fa fa-angle-double-right"></i>',
) ); ?>
</div>
<?php
wp_reset_postdata();
endif;
?>
</div>
<!--/End of Blog Detail-->
</div>
</div>
</section>
<!-- End of Blog & Sidebar Section -->
<div class="clearfix"></div>
<?php get_footer(); ?>