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
- Show recent posts from a custom taxonomy in wordpress
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- display taxonomy terms with link
- new custom filed not showing in taxonomy
- How to add a dynamic dropdown derived from custom taxonomy
- Custom field with terms from another taxonomy programmatically
- Taxonomies and subtaxonomies relations
- Retrieve the child terms by having the parent’s information
- Fill New Taxonomies
- add pagination in wordpress page template
- How do I get the correct URL?
- Custom Taxonomies Archive Page 404
- How to replace custom post type with custom taxonmy in permalinks
- Listing Cities A custom taxonmy by selection order
- Cloning product not copying custom taxonomies
- Template taxonomy-{taxonomy}.php doesn’t show my posts
- how do you pull data from two taxonomies?
- problem : Custom taxonomy template not showing
- How to create a non removable taxonomy term?
- Can I get thumbnail of taxonomy?
- Custom dropdown list taxonomy not saved
- How to get all the terms from a custom hierarchical taxonomy via REST api?
- How to show category list in WordPress
- Filter “get_terms” query
- Get post meta value outside of the loop
- How To Create Dynamic Permalink To Custom Taxonomy List of Current Posts?
- Dropdown (with onChange) with custom taxonomies
- Unregistered taxonomy apears still as emtpy filter list
- Unable to create a new taxonomy
- Change link of taxonomy when get_the_term_list( is used?
- generate random slug when adding taxonomy
- transfer two existing taxonomy terms into one custom metabox
- taxonomy – templates are not loading
- Get Highest and Lowest get_term_meta() value from Taxonomy Term
- Get link for taxonomy to show top-level terms
- ACF Custom field not showing in Timber Taxonomy page
- Templates for CPT not working
- Custom Taxonomy Not Being Recognized by is_tax()
- Different templates for each category level
- How can I rewrite a custom taxonomy archive slug
- Custom taxonomy shows full articles
- Custom TaxonomyTemplate
- How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
- Displaying subcategories and then posts in taxonomy template
- Why get_terms() behaves strangely when being called in admin (for use in meta box)?
- Custom taxonomy archive template not recognised
- Ignore punctuation marks in taxonomy order by name
- How to truncate the description in the admin panel for a custom taxonomy
- I want to create an archive and single page for a custom taxonomy for a custom post type
- What’s the url queryvar for a taxnomy archive?
- How to use two same taxonomy in same post differently?
- set_object_terms for custom taxonomy in custom post type – not working
- Get all users attached to a taxonomy
- qtranslate-x problem with custom term description
- Resize $term attachment using url
- Post not showing in my custom advanced search
- Sort Taxonomy List by Custom Values
- Custom taxonomy escaping html attr
- Showing list of custom posts of a custom taxonomy
- Display taxonomy posts
- Show portfolio category slug in url ( if exist)
- switch statement for taxonomy content
- Add image to taxonomy and output to homepage
- Change order custom taxonomy
- Looking for suggestions on creating simple database (Help!!)
- How do you search for a post by custom taxonomy?
- Display taxonomy term slugs
- Extra fields on categories that is available via the WP-API?
- Can I use multi (sub) levels of relation (AND | OR) on custom query?
- Index page of posts tagged with two separate taxonomies
- Child Pages and Custom Taxonomies
- Custom taxonomy – query returns an error
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- Remove taxonomy menu without removing the metabox?
- How to perform a search inside a specific taxonomy category
- Register custom taxonomy from a Advenced custom field option page
- Taxonomy term breadcrumb; how?
- How to display custom taxonomy and terms using/creating plugin template
- add custom fields in custom taxonomy meta box in wordpress-3.5.2
- How to permanently delete a taxonomy
- Sorting Custom Taxonomy in ASC/DESC order?