:WORDPRESS: basic-custom-loop
<?php get_header(); ?>
<main role="main" class="container">
<!-- section -->
<div class="page-title-container">
<h1 class="page-title"><?php the_title(); ?></h1>
</div>
<div id="content-container">
<div id="post-<?php the_ID(); ?>" <?php post_class('content'); ?>>
<?php
$args = array(
'post_type'=>'testimonial',
'posts_per_page'=>5,
'order'=>'ASC',
'paged'=> $paged
);
$wp_query = new WP_Query($args);
if ($wp_query->have_posts()) :
while ($wp_query->have_posts()) : $wp_query->the_post();
?>
<!-- LOOP CONTENT -->
<article><?php the_content(); ?></article>
<!-- END LOOP CONTENT -->
<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_postdata(); ?>
<?php wp_pagination(); ?>
<?php edit_post_link("Edit Page"); ?>
</div>
<!-- /div -->
</div><!--EOF:#content-container-->
<?php get_sidebar(); ?>
</main>
<?php get_footer(); ?>