correctly check enabled post types and categories