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);
 }
Example #2
0
 private function get_terms($tax)
 {
     if (is_taxonomy_hierarchical($tax) || $this->all_terms) {
         return get_terms($tax);
     } else {
         return QMT_Terms::get($tax);
     }
 }