How can I tell what category I’m in? July 11, 2022 by Tarik Billa This should get you category object with ID, slug and rest of info: $wp_query->get_queried_object();