????
| Current Path : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/templates/ |
| Current File : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/templates/blog.php |
<?php
/**
* Template Name: Blog
*
* @package Wanderfuls WordPress Theme
* @subpackage Templates
*/
get_header(); ?>
<div id="content-wrap" class="container clr">
<?php tb_hook_primary_before(); ?>
<section id="primary" class="content-area clr">
<?php tb_hook_content_before(); ?>
<div id="content" class="site-content clr" role="main">
<?php tb_hook_content_top(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php if ( has_post_thumbnail() && tb_get_mod( 'page_featured_image' ) ) : ?>
<div id="page-featured-img" class="clr">
<?php the_post_thumbnail(); ?>
</div><!-- #page-featured-img -->
<?php endif; ?>
<div class="entry-content entry clr">
<?php the_content(); ?>
</div><!-- .entry-content -->
<?php endwhile; ?>
<?php
global $post, $paged, $more;
$more = 0;
if ( get_query_var( 'paged' ) ) {
$paged = get_query_var( 'paged' );
} else if ( get_query_var( 'page' ) ) {
$paged = get_query_var( 'page' );
} else {
$paged = 1;
}
// Query posts
$wp_query = new WP_Query(
array(
'post_type' => 'post',
'paged' => $paged,
'category__not_in' => tb_blog_exclude_categories( true ),
)
);
if ( $wp_query->posts ) : ?>
<div id="blog-entries" class="clr <?php tb_blog_wrap_classes(); ?>">
<?php $tb_count = 0; ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php $tb_count++; ?>
<?php get_template_part( 'partials/blog/blog-entry-layout' ); ?>
<?php if ( tb_blog_entry_columns() == $tb_count ) $tb_count=0; ?>
<?php endwhile; ?>
</div><!-- #blog-entries -->
<?php tb_blog_pagination(); ?>
<?php endif; ?>
<?php wp_reset_postdata(); wp_reset_query(); ?>
<?php tb_hook_content_bottom(); ?>
</div><!-- #content -->
<?php tb_hook_content_after(); ?>
</section><!-- #primary -->
<?php tb_hook_primary_after(); ?>
</div><!-- #content-wrap -->
<?php get_footer(); ?>