array( $portfolio_category ),
'paged' => $paged,
);
} else {
$args = array(
'paged' => $paged,
'tax_query' => array(
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => array( 'post-format-gallery', 'post-format-image' ),
'operator' => 'NOT IN'
),
)
);
}
$index_query = new WP_Query( $args );
$temp_query = $wp_query;
$wp_query = null;
$wp_query = $index_query;
if ( $index_query->have_posts() ) {
if ( is_home() && ! is_front_page() ) { ?>
have_posts() ) {
$index_query->the_post();
get_template_part( 'template-parts/content', get_post_format() );
}
}
wp_reset_postdata();
the_posts_pagination( array( 'type' => 'list' ) );
$wp_query = null;
$wp_query = $temp_query;
} else {
if ( have_posts() ) {
if ( is_home() && ! is_front_page() ) { ?>
'list' ) );
} ?>