$v) { if($v == "1") $types[] = $typ; } if(empty($types)) $types = array("post"); } $homeq_args = array( 'post_type' => $types, 'paged' => $paged, 'ignore_sticky_posts' => 1 ); if($homepcnt) $homeq_args["posts_per_page"] = $homepcnt; if($orderby) $homeq_args["orderby"] = $orderby; if($ord) $homeq_args["order"] = $ord; if($cat && $cat != 0) $homeq_args["cat"] = $cat; if ( ! empty( $eo_options["home_excl"] ) ) { $excluded_ids = array(); $home_excludes = $eo_options["home_excl"]; foreach ( $home_excludes as $exc=>$v) { ${$exc . '_ids'} = get_transient('eo_'.$exc.'_ids'); if(${$exc . '_ids'} && is_array(${$exc . '_ids'}) ) $excluded_ids = array_merge($excluded_ids,${$exc . '_ids'} ); } $excluded_ids = array_unique($excluded_ids); $homeq_args["post__not_in"] = $excluded_ids; } $home_qy = new WP_Query( $homeq_args ); if($sldr && $sldr_p == "full" && is_home() ) eo_get_template_part( 'inc/modules/carousel' ); ?>