I found the answer I was looking for as this:
$sport_slug = get_query_var('term');
Related Posts:
- How can I set up a category “overview” page?
- Override Taxonomy Template
- How to display custom taxonomy
- Taxonomy Templates… by hierarchical level?
- Which template name to use for taxonomies but not their terms?
- How do I create a custom archive page depending on the custom taxonomy type?
- How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?
- WordPress Doesn’t Generate Taxonomy Archive
- How to use multiple archive templates for a taxonomy?
- Avoid taxonomy-%term%.php if more than one taxonomy
- Why get_page_template() doesn’t show taxonomy template file name?
- how to access the $query variable inside taxonomy-xxx.php template file?
- Prioritise Pages over Taxonomy Term Root Archive, but not Taxonomy Term Child Archives
- Single taxonomy for different custom post types
- How to get a terms and posts associated with another term?
- Templates files for custom post type with custom tags
- Creating a Taxonomy Page [duplicate]
- WordPress doesn’t respect the template hierarchy?
- is_tax not working for custom taxonomy
- How to use taxonomies on attachments with the new Media Library?
- Add custom taxonomy fields when creating a new taxonomy
- How to display custom taxonomies in posts?
- Creating Custom Taxonomy without mapping to any post type
- Exclude specific slug in ‘get_terms’
- Widget to display custom taxonomy tag cloud
- Hook to process a new taxonomy tag before it is created?
- Multiple users – only allow them to manage their own terms for custom taxonomy when logged in
- wp_options table value
- Custom Taxonomy Only Showing Top Level Terms in Admin?
- Is it possible to get a Previous/Next Taxonomy term archive URL?
- How do I display a tag cloud with both post tags AND a custom taxonomy?
- Adding session variable and/or cookie based on user-selected input
- How to display term description in empty terms archive?
- Create Child Taxonomies
- Generic taxonomy-term template page
- Query Posts by taxonomy/Taxonomy Child Custom order
- Current category link filter
- display taxonomy slug from term ID
- Make a taxonomy column sortable in the admin?
- Redirect all child taxonomy to its parent
- How to display custom taxonomy images on index.php?
- How do I taxonomy terms based on terms they are used alongside?
- get_term and get_term_by return null or false, even though term exists
- How can I populate a select element with terms from a custom taxonomy and filter post results?
- How do I list the pages of a custom taxonomy?
- Why does a new taxonomy term get created when I assign an existing term to a post?
- Add Image Uploader In Admin Panel
- Tell the difference between a term and page when they have the same ID
- Adding custom taxonomy in my existing category URL
- Custom Taxonomy Query
- How to get posts which must match both custom taxonomies?
- Taxonomy Parent Name
- Returning One custom taxonomy term name
- Make child taxonomy categories use a set template
- Proper way to update the slug of a taxonomy using register_taxonomy? [duplicate]
- Displaying Custom Taxonomy without a hyperlink
- My custom taxonomy page is leading in 404 page
- Show template part if part of term
- one post per term taxonomy
- Corrupted nav-menu?
- Remove taxonomy widget from “PAGE” post
- List Top 5 taxonomy terms based on number of post
- Get list of taxonomies associated with users
- Register `product_cat` taxonomy for default post post type
- Taxonomy.php how to show post only in current taxonomy with wp_query?
- Don’t display taxonomy if empty
- Use wp_list_categories to list parent categories from actual term
- Include get_term_link inside search
- Trash Bin for Categories?
- display taxonomy terms with link
- Custom field with terms from another taxonomy programmatically
- Taxonomies and subtaxonomies relations
- How to create a non removable taxonomy term?
- Can I get thumbnail of taxonomy?
- How to show category list in WordPress
- transfer two existing taxonomy terms into one custom metabox
- How can I rewrite a custom taxonomy archive slug
- Custom TaxonomyTemplate
- How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
- qtranslate-x problem with custom term description
- Display taxonomy posts
- Add image to taxonomy and output to homepage
- Looking for suggestions on creating simple database (Help!!)
- Child Pages and Custom Taxonomies
- Custom taxonomy – query returns an error
- How to perform a search inside a specific taxonomy category
- Sorting Custom Taxonomy in ASC/DESC order?
- How can i set post_per_page in my taxonamy?
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- Get Posts with matching lowest taxonomies
- Loop custom post type by taxonomy (Category)
- Any way to make custom taxonomy field searchable?
- query posts returns 10 records
- Insert taxonomy term to different table
- Getting taxonomies specific to categories
- Remove Tag Cloud Words from Custom Taxonomy
- How to add/enqueue Custom CSS for a custom taxonomy page?
- wp_get_object_terms count on taxonomies within an category archive
- Taxonomies starting with a hyphen (minus) to assign B.C. dates to a post
- Template hierarchy html with taxonomy in 6.2