Example #1
0
 private function set_filtered_ids()
 {
     global $wp_query;
     if (isset(self::$filtered_ids)) {
         return;
     }
     $args = array_merge($wp_query->query, array('fields' => 'ids', 'nopaging' => true, 'no_found_rows' => true, 'ignore_sticky_post' => true, 'cache_results' => false));
     $query = new WP_Query();
     self::$filtered_ids = $query->query($args);
 }