How to get the page slug of the current archive page for a custom taxonomy April 20, 2022 by Tarik Billa Using your current code: $tax_slug = get_query_var( 'event-categories' );