11.05.2017
Выводим записи только определенного формата
<?php $args = array( 'post_type' => 'post', 'tax_query' => array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array('post-format-aside') ) ), 'posts_per_page' => '3' ); $wp_query = new WP_Query( $args ); while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?> <div class="col-md-4"> <?php get_template_part('include/related-article'); ?> </div> <?php endwhile; ?> <?php wp_reset_postdata(); ?>