<?php
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
$parent = get_term_by( 'id', $term->parent, get_query_var( 'taxonomy' ) );
if($parent):
echo $parent->name;
endif;
?>
Related Posts:
- Can’t get a custom template taxonomy page to display
- Custom Taxonomy Archive Page
- Taxonomy Templates… by hierarchical level?
- How to display a listing template of a certain taxonomy?
- How to use wp_terms_checklist() on front end
- Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin
- Custom Taxonomy Template not respecting ‘include_children’ => ‘false’
- How can I set up a category “overview” page?
- Which template name to use for taxonomies but not their terms?
- On Taxonomy Template page, want to add Post_Type
- Make Custom Taxonomy Category Use Parent Template
- Custom taxonomy template not working
- Using a different template per Custom Taxonomies for single term archive pages
- Woocommerce custom taxonomies page
- Generic taxonomy-term template page
- 404 for a custom taxonomy?
- Why is my taxonomy template not shown?
- Meta description – template code to get category description
- Create and set templates for custom taxonomies
- Pagination on custom taxonomy
- How to have two different versions of a tag/category/taxonomy archive page?
- How do I create a custom archive page depending on the custom taxonomy type?
- Different single page templates for taxonomies
- Override Taxonomy Template
- Avoid taxonomy-%term%.php if more than one taxonomy
- Returning One custom taxonomy term name
- Make child taxonomy categories use a set template
- How can I make front page to display custom taxonomy page?
- Why get_page_template() doesn’t show taxonomy template file name?
- pagination not working on custom-taxonomy template
- How to add custom content to custom taxonomy
- how to access the $query variable inside taxonomy-xxx.php template file?
- Template file renders on local install, not on web
- Catch all taxonomy template
- Taxonomy archive uses incorrect template when query strings are used
- How to use custom slug and custom templates for custom taxonomy?
- How to get a terms and posts associated with another term?
- Custom taxonomy archive template not recognised
- Post not showing in my custom advanced search
- How to display custom taxonomy
- WordPress doesn’t respect the template hierarchy?
- How to update WordPress custom SQL Select query for custom taxonomies so that syntax is correct?
- Can you orderby slug in a taxonomy archive page using WP_Query?
- Custom Taxonomy Template Variables Available?
- is_tax not working for custom taxonomy
- Query users by custom taxonomy and user role
- Custom Taxonomy and Tax_Query
- display posts with same taxonomy term
- pre_get_posts with tax_query causes empty result
- Best pratice to make taxonomy terms translatable without changing slugs?
- Get the latest taxonomy/category?
- Link to most recently created category of custom taxonomy in primary navigation menu
- Listing child terms of parent term
- Ajax post filter by taxonomy
- Custom Taxonomies but with Icons associated?
- How to prevent posts duplicating when viewing a custom taxonomy term
- Is it possible to create exclusive custom taxonomy?
- Custom Taxonomy Archive BUG
- how does get_term_by know which term to return when the same term appears twice in a hierarchical taxonomy?
- Changing stylesheet depending on custom taxonomy terms
- How Can I Change a Taxonomy URL Based On The Originating URL?
- How To Assign “Taxonomy per Taxonomy”?
- Rewrite Rule Working for all but one of the taxonomies created
- Get custom taxonomy for visual composer shortcode but not working?
- Template for all categories of a custom post type?
- Multi-select field for Taxonomy can’t save the value
- How to Display a menu only if it has Posts in Custom Menu?
- Take a custom taxonomy value and save as a standard Product Tag
- Check If Taxonomy A and Taxonomy B has same Slug, 301 Auto Redirect Tax A to Tax B if True in WordPress
- wp_dropdown_categories – how to save in widget?
- Loop to display ONLY custom taxonomy parent information [closed]
- echo a specific custom taxonomy term on a different custom taxonomy archive
- Loop through custom taxanomy in post and display custom fields from posts
- query_posts that have custom taxonomy and limiting what shows based on the taxonomy
- Custom Taxonomy List with Children
- Dynamically generate category id and store in variable
- Extra Meta Data for WordPress Multisite Taxonomy
- Problem with sorting in custom child taxonomy archive page
- Check if any available product has specific attribute
- How to Create taxonomy using ‘null’ for $object_type?
- Query Multiple Taxonomies and Multiple Terms with Different Operators
- Templates for CPT not working
- Pre_get_post custom taxonomy combined with custom fields?
- Adding a checkbox field to a (custom) taxonomy
- Ignore punctuation marks in taxonomy order by name
- Resize $term attachment using url
- Product dimensions filter by taxonomy
- How can I pull the slug of a custom taxonomy and output it in a class?
- Custom taxonomy escaping html attr
- Showing list of custom posts of a custom taxonomy
- How to show/hide a meta box using categories, with a different post type
- Producing a list of media library items categorized under a certain taxonomy item
- Use custom field as tag slug
- How To Display Selected Terms For Custom Taxonomy?
- Custom taxonomy subcategories template page
- Adding a query var to taxonomy term archive – gets redirected to the other taxonomy archive page
- $term->taxonomy stripping out underscores
- Custom Taxonomy, shows empty value (home page of website)
- Complex Taxonomy scheme
- Registering custom taxonomy using reserved terms