changed params and category selection by tepe of post, added post type param