//add query vars
add_filter(‘query_vars’, array($this,’add_queryvars’) );

//filter post type & date if it is set
add_filter(‘pre_get_posts’, array($this,’filter_query_post_types’));