have_posts() ) : $loop_featured->the_post();
$ids[] = get_the_ID();
get_template_part('content-featured-category');
endwhile;
wp_reset_postdata();
?>
'post',
'posts_per_page' => get_option('posts_per_page'),
'paged' => $paged,
'post_status' => 'publish',
'ignore_sticky_posts' => true,
'post__not_in' => $ids,
'category_name' => $cat_name,
'order' => 'DESC',
'orderby' => 'date'
);
$custom_query = new WP_Query( $custom_query_args );
if ( $custom_query->have_posts() ) :
?>
have_posts() ) : $custom_query->the_post(); ?>
max_num_pages > 1) : // custom pagination ?>