'post_tag', 'hide_empty' => true, 'orderby' => 'name', 'order' => 'ASC', )); if (is_wp_error($available_tags)) { $available_tags = array(); } $list_query_args = array( 'post_type' => $active_post_type, 'post_status' => 'publish', 'posts_per_page' => 10, 'paged' => $paged, 'ignore_sticky_posts' => true, 'orderby' => 'date', 'order' => 'DESC', 'suppress_filters' => false, ); if ($keyword !== '') { $list_query_args['itstudio_archive_extend_search'] = true; $list_query_args['itstudio_archive_keyword'] = $keyword; } if ($tag_slug !== '') { $list_query_args['tax_query'] = array( array( 'taxonomy' => 'post_tag', 'field' => 'slug', 'terms' => array($tag_slug), ), ); } $list_query = new WP_Query($list_query_args); $featured_query = new WP_Query(array( 'post_type' => $active_post_type, 'post_status' => 'publish', 'posts_per_page' => 4, 'ignore_sticky_posts' => true, 'meta_key' => $weight_meta_key, 'orderby' => array( 'meta_value_num' => 'DESC', 'date' => 'DESC', ), 'order' => 'DESC', 'no_found_rows' => true, )); $featured_ids = array_map('intval', wp_list_pluck($featured_query->posts, 'ID')); wp_reset_postdata(); if (count($featured_ids) < 4) { $fill_query = new WP_Query(array( 'post_type' => $active_post_type, 'post_status' => 'publish', 'posts_per_page' => 4 - count($featured_ids), 'ignore_sticky_posts' => true, 'post__not_in' => $featured_ids, 'orderby' => 'date', 'order' => 'DESC', 'no_found_rows' => true, )); $featured_ids = array_merge($featured_ids, array_map('intval', wp_list_pluck($fill_query->posts, 'ID'))); wp_reset_postdata(); } $featured_ids = array_slice(array_values(array_unique($featured_ids)), 0, 4); ?>

have_posts()) : ?>
have_posts()) : $list_query->the_post(); ?>

', ''); the_archive_description('
', '
'); ?>