add filters function to posttype class