Current File : /home/kelaby89/teamhachem.com/wp-content/themes/artkombat/archive-testimonials.php |
<?php
/**
* Testimonials page
*/
?>
<?php get_header(); ?>
<div class="container">
<div class="testimonials-list inner-page margin-default">
<?php
if ( get_query_var( 'paged' ) ) {
$paged = get_query_var( 'paged' );
}
elseif ( get_query_var( 'page' ) ) { $paged = get_query_var( 'page' );
}
else {
$paged = 1;
}
$wp_query = new WP_Query( array(
'post_type' => 'testimonials',
'paged' => (int) $paged,
) );
if ( $wp_query->have_posts() ) :
while ( $wp_query->have_posts() ) : $wp_query->the_post();
get_template_part( 'tmpl/content', 'testimonials' );
endwhile;
else :
// If no content, include the "No posts found" template.
get_template_part( 'tmpl/content', 'none' );
endif;
?>
<?php
if ( have_posts() ) {
artkombat_paging_nav();
}
?>
</div>
</div>
<?php get_footer(); ?>