BEC

[insert_php]
// set the “paged” parameter (use ‘page’ if the query is on a static front page)
$paged = ( get_query_var( ‘paged’ ) ) ? get_query_var( ‘paged’ ) : ‘1’;
$args = array (
‘nopaging’ => false,
‘paged’ => $paged,
‘posts_per_page’ => ‘6’,
‘post_type’ => ‘post’,
‘category_name’ => ‘bec’,
);

// The Query
$query = new WP_Query( $args );

// The Loop
if ( $query->have_posts() ) {

while ( $query->have_posts() ) {
$query->the_post();

$post_id = get_the_ID();
echo ‘[display-posts id=”‘.$post_id.'” order=”DESC” include_excerpt=”true” wrapper=”div”]’;
}

echo ‘‘;
previous_posts_link( “« Previous” );
echo ‘
‘;

echo ‘‘;
next_posts_link( “Next »”, $query->max_num_pages );
echo ‘
‘;

} else {
// no posts found
echo ‘

No Posts Found

‘;
}

// Restore original Post Data
wp_reset_postdata();
[/insert_php]