$v) { if($v == "1") $types[] = $typ; } if(empty($types)) $types = array("post"); //var_dump($less_rsrcs_arr); } $caru_args = array( 'post_type' => $types, 'ignore_sticky_posts' => 1 ); if($postcnt) $caru_args["posts_per_page"] = $postcnt; if($orderby) $caru_args["orderby"] = $orderby; if($ord) $caru_args["order"] = $ord; if($cat && $cat != 0) $caru_args["cat"] = $cat; // The Query $caru_qy = new WP_Query( $caru_args ); ?>