$v) { if($v == "1") $types[] = $typ; } if(empty($types)) $types = array("post"); //var_dump($less_rsrcs_arr); } $high_args = array( 'post_type' => $types, 'ignore_sticky_posts' => 1 ); if($postcnt) $high_args["posts_per_page"] = $postcnt; if($orderby) $high_args["orderby"] = $orderby; if($ord) $high_args["order"] = $ord; if($cat && $cat != 0) $high_args["cat"] = $cat; $mod_exc_id = "high"; include(get_template_directory().'/inc/modules/_mod_excl_incl.php'); //var_dump($high_args); // The Query $high_qy = new WP_Query( $high_args ); // Save the retrieved IDs to exclude in other places $high_post_arr = $high_qy->posts; $high_ids_arr = array(); foreach ( $high_post_arr as $high_post ) { $high_ids_arr[] = $high_post->ID; } set_transient('eo_high_ids',$high_ids_arr); ?>