$active_post_type, 'post_status' => 'publish', 'posts_per_page' => 10, 'paged' => $paged, 's' => $keyword, 'ignore_sticky_posts' => true, 'orderby' => 'date', 'order' => 'DESC', )); $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('
', '
'); ?>