Exemplo n.º 1
0
 /**
  * Add modifications to the query
  *
  * @return void
  */
 protected function setup_query_filters()
 {
     global $wp_query;
     // band-aid for month view
     if ($wp_query->is_main_query() && $wp_query->get('eventDisplay') == 'month') {
         $wp_query->set('meta_query', array(array('key' => '_EventStartDate', 'type' => 'DATETIME')));
     }
     parent::setup_query_filters();
 }
Exemplo n.º 2
0
 protected function setup_query_filters()
 {
     if ($this->currentValue) {
         $this->set_min_and_max();
     }
     parent::setup_query_filters();
 }
 /**
  * Load the filter settings - including the logic mode.
  */
 protected function settings()
 {
     parent::settings();
     $this->logic = $this->get_logic();
 }