3,
'post__not_in' => $is_sticky,
'ignore_sticky_posts' => 1,
'tax_query' => array( array('taxonomy' => 'post_format',
'field' => 'slug',
'terms' => array(
'post-format-quote',
'post-format-audio',
'post-format-aside',
'post-format-status',
'post-format-link',
'post-format-chat',
'post-format-image'),
'operator' => 'NOT IN',),),);
$query = new WP_Query($args);
if ( $query->have_posts() ) :?>
have_posts() ) : $query->the_post();
if ( ! get_post_format()):
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'template-parts/content', 'article-2' );
else:
get_template_part( 'template-parts/content', get_post_format() );
endif;
endwhile;
wp_reset_postdata();
?>
__( 'Previous page', 'abedul' ),
'next_text' => __( 'Next page', 'abedul' ),
'before_page_number' => '' . __( 'Page', 'abedul' ) . ' ',
) );
else :
// If no content, include the "No posts found" template.
get_template_part( 'template-parts/content', 'none' );
endif;
?>