';print_r($wp_query);echo ''; echo '
'; ?>

%s
', $term_description ); endif; ?>
query['category_name']; $is_sticky = get_option('sticky_posts'); $terms = array('post-format-aside', 'post-format-image', 'post-format-video', 'post-format-quote', 'post-format-link', 'post-format-gallery', 'post-format-status', 'post-format-audio', 'post-format-chat', ); $args_featured = array( 'category_name' => $category_name, 'posts_per_page' => -1, 'post__in' => $is_sticky, //'ignore_sticky_posts' => false, 'tax_query' => array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => $terms, 'operator' => 'NOT IN', ), ), ); $args_standard = array( 'category_name' => $category_name , 'posts_per_page' => -1 , 'post__not_in' => $is_sticky, //'ignore_sticky_posts' => false, 'tax_query' => array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => $terms, 'operator' => 'NOT IN', ), ), ); $args_formatted = array( 'category_name' => $category_name , 'posts_per_page' => -1 , //'post__in' => $is_sticky, //'ignore_sticky_posts' => true, 'tax_query' => array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => $terms, 'operator' => 'IN', ), ), ); $query_featured = new WP_Query($args_featured); $query_standard = new WP_Query($args_standard); $query_formatted = new WP_Query($args_formatted); //echo '
';print_r($query);echo '
'; echo '
'; // Start the first Loop. if ($query_featured->have_posts()): while ( $query_featured->have_posts() ) : $query_featured->the_post(); /* * 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', 'featured-article-tag'); endwhile; wp_reset_postdata(); endif;?>
have_posts()): ?>
have_posts() ) : $query_standard->the_post(); /* * 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'); endwhile; wp_reset_postdata(); ?>
have_posts()): ?>
have_posts() ) : $query_formatted->the_post(); /* * 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', get_post_format()); endwhile; wp_reset_postdata(); ?>