Getting all posts, 6 posts per page with pagination.

<?php  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
	'numberposts' => -1,
	'post_type' => 'post',
	'paged'          => $paged,
	'posts_per_page' => 6
);
?>

<?php $the_query = new WP_Query( $args );  ?>
<?php if( $the_query->have_posts() ): ?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> 

<? .// the loop  ?>

<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query(); ?>

<? .// pagination goes here  ?>
 <div class="pagination clear"> 
	<?php twentytwelve_content_nav( 'nav-below' ); ?>
</div>

 

Getting all posts related to the tags, 6 posts per page with pagination.

<?php  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
	'numberposts' => -1,
	'post_type' => 'post',
	'tag' => get_query_var('tag'),
	'paged'          => $paged,
	'posts_per_page' => 6
);
?>


<?php $the_query = new WP_Query( $args );  ?>
<?php if( $the_query->have_posts() ): ?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> 

<? .// the loop  ?>

<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query(); ?>

<? .// pagination goes here  ?>
 <div class="pagination clear"> 
	<?php twentytwelve_content_nav( 'nav-below' ); ?>
</div>

Getting all posts related to the category, 6 posts per page with pagination.

<?php  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
	'numberposts' => -1,
	'post_type' => 'post',
	'cat' => get_query_var('cat'),
	'paged'          => $paged,
	'posts_per_page' => 6
);
?>

<?php $the_query = new WP_Query( $args );  ?>
<?php if( $the_query->have_posts() ): ?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> 

<? .// the loop  ?>

<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query(); ?>

<? // pagination goes here  ?>
 <div class="pagination clear"> 
	<?php twentytwelve_content_nav( 'nav-below' ); ?>
</div>

Examples of useful WordPress queries using popular plugin Advanced Custom Fields (ACF)

<?php  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
	'numberposts' => -1,
	'post_type' => 'post',
	'cat' => get_query_var('cat'),
	'paged'          => $paged,
	'posts_per_page' => 6
);
?>

<?php $the_query = new WP_Query( $args );  ?>
<?php if( $the_query->have_posts() ): ?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> 

<? .// the loop  ?>

<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query(); ?>

<? // pagination goes here  ?>
 <div class="pagination clear"> 
	<?php twentytwelve_content_nav( 'nav-below' ); ?>
</div>