/**
  * 
  * get posts from categories (by the slider params).
  */
 private function getPostsFromWCCategories()
 {
     $catIDs = $this->getParam("wc_post_category", 0);
     $data = $this->getCatAndTaxData($catIDs);
     $taxonomies = $data["tax"];
     $catIDs = $data["cats"];
     //dmp($catIDs);exit();
     $sortBy = $this->getParam("wc_post_sortby", self::DEFAULT_POST_SORTBY);
     $sortDir = $this->getParam("wc_posts_sort_direction", self::DEFAULT_POST_SORTDIR);
     $maxPosts = $this->getParam("wc_max_slider_posts", "30");
     if (empty($maxPosts) || !is_numeric($maxPosts)) {
         $maxPosts = -1;
     }
     $postTypes = $this->getParam("wc_post_types", "any");
     //set direction for custom order
     if ($sortBy == UniteFunctionsWPBiz::SORTBY_MENU_ORDER) {
         $sortDir = UniteFunctionsWPBiz::ORDER_DIRECTION_ASC;
     }
     //get meta filters
     $args = array();
     $args[UniteFunctionsWooCommerceBiz::ARG_REGULAR_PRICE_FROM] = $this->getParam("wc_regular_price_from");
     $args[UniteFunctionsWooCommerceBiz::ARG_REGULAR_PRICE_TO] = $this->getParam("wc_regular_price_to");
     $args[UniteFunctionsWooCommerceBiz::ARG_SALE_PRICE_FROM] = $this->getParam("wc_sale_price_from");
     $args[UniteFunctionsWooCommerceBiz::ARG_SALE_PRICE_TO] = $this->getParam("wc_sale_price_to");
     $args[UniteFunctionsWooCommerceBiz::ARG_IN_STOCK_ONLY] = $this->getParam("wc_instock_only", "false");
     $args[UniteFunctionsWooCommerceBiz::ARG_FEATURED_ONLY] = $this->getParam("wc_featured_only", "false");
     $metaQuery = UniteFunctionsWooCommerceBiz::getMetaQuery($args);
     $arrPosts = UniteFunctionsWPBiz::getPostsByCategory($catIDs, $sortBy, $sortDir, $maxPosts, $postTypes, $taxonomies, $metaQuery);
     return $arrPosts;
 }