/** * * get posts from specific posts list */ private function getPostsFromSpecificList() { $strPosts = $this->getParam("posts_list", ""); $strPosts = apply_filters('revslider_set_posts_list', $strPosts); $slider_id = $this->getID(); $arrPosts = RevSliderFunctionsWP::getPostsByIDs($strPosts, $slider_id); return $arrPosts; }
/** * * get posts from specific posts list */ private function getPostsFromSpecificList($gal_ids = array()) { $is_gal = false; $additional = array(); if (!empty($gal_ids) && $gal_ids[0]) { $strPosts = $gal_ids; $strPosts = apply_filters('revslider_set_posts_list_gal', $strPosts, $this->getID()); $is_gal = true; } else { if (isset($gal_ids[0])) { unset($gal_ids[0]); $strPosts = implode(",", $gal_ids); $additional['order'] = "none"; $additional['orderby'] = "post__in"; } else { $strPosts = $this->getParam("posts_list", ""); $additional['order'] = $this->getParam("posts_sort_direction", "DESC"); $additional['orderby'] = $this->getParam("post_sortby", ""); } $strPosts = apply_filters('revslider_set_posts_list', $strPosts, $this->getID()); } $slider_id = $this->getID(); $arrPosts = RevSliderFunctionsWP::getPostsByIDs($strPosts, $slider_id, $is_gal, $additional); return $arrPosts; }