<?php
the_category( ' > ', 'multiple', $post->ID);
echo ' > ';
the_title();
?>
This works correctly when the post is in just one category. But if it’s in multiple categories, or if the category parents are also selected — in your case, if the post is also in super-cat and parent-cat — then it displays those categories twice.
So this is probably not going to do it for you.
I suspect some of the breadcrumb type plugins might have solved this though.
Related Posts:
- How to display non-hierarchical taxonomy as terms with checkboxes?
- Different template for subcategories
- Categories’ hierarchy in URL
- How to only show posts on last child category
- Categories lose hierarchy order once assigned to post
- Add Product categories to WordPress menu without losing hierarchy
- How can I get an tag to wrap each ancestor that gets outputted in this condition?
- Category tree is flattened inside admin upon saving
- Categories vs. Page Site Organization
- How to enable category hierarchy for links?
- Combining post categories and link categories?
- How to categorize posts under Category 1 and Category 2 which are separate lists of categories, and display them as separate lists in widgets
- Give a page priority over a category that has the same name?
- Add child category to parent on post creation and save
- How do I make the category sidebar widget (stock) display the total # of posts including those in subcategories?
- How to get Next/previous_post_link to go through articles in top parent category
- Hierarchical permalink structure for posts showing categories and sub-categories
- WordPress list categories dropdown with parent-child relation and child under it’s parent
- Display only subcategories of a category and not sub-subcategories
- How to load several hierarchical categories from functions.php
- Check is category parent with ids from the childs – get_term_children
- Posts not listing out sub category in hierarchy
- list all child categories that apply to current post even if those cats are empty?
- Show subChild categories
- Parent Category and Subcategory default text generated with category
- outputting taxonomy hierarchy
- Different template for subcategories
- Children categories not shown in dashboard
- Most efficient use of custom taxonomies, categories, and pages
- Display categories and their IDs
- List the category tree of all the product_cat categories
- Can I set a default featured image for a category?
- What’s the URL for a category archive?
- Weird behaviour when adding terms/term_taxonomies programmatically
- How can I get category ID by category name?
- Is there a way to have duplicate category slugs?
- Multiple level category drop-down
- Adding Custom User Profile data based upon Categories
- Order posts by category name
- How can I make wp_list_categories output li with category-slug as class, for its children?
- Show post only if match all categories
- Output link to category from WP_Query loop of woocommerce products
- Hide tag and category boxes from the post editor
- how to remove category from database
- Add multiple=”multiple” attribute to categories dropdown
- Allow dot in wordpress permalinks (only for categories)
- How to know if it’s a child taxonomy?
- Collapse subcategories in post edit screen
- Categories: A Greenhorn Question on Strategy (Not Code)
- Exclude category from Tag Template
- How to provide value for ‘selected’ on wp_dropdown_categories() for ‘multiple’ options
- Need Category RSS Feed that shows all posts
- How to display post images in category view?
- Nav menu category links not showing
- How would I go about adding custom header images per category?
- Exclude a category from the_category in the single post page
- Post publish directly in all categories except one need pending review
- Display category posts before others category custom query [closed]
- Get Prevous/Next Post Specific Category Without Excludes
- add_rewrite_endpoint returns 404 on archives
- Sub Categories Keep Redirecting to Pages With Same Slugs
- Category template to show different categories based on parent
- Customize category page for different custom taxonomies
- Get posts under a category with SQL
- Conditional IF current cat is the smallest/last/end child cat THEN
- How to create a custom meta box field in category? [duplicate]
- How to show 1-5 of X Total Results
- SQL query to return categories and category parents
- How to Remove a Title from All Category and Tags Page?
- WordPress Show Parent Category Description for Sub-categories
- why get_the_post_thumbnail( the_ID()) echos extra post id
- How to fetch the highest category in the hierachry for a specific post?
- Woocommerce search form with category select
- How to not display subcategories in Recent Posts widget area?
- Getting the Most Recent Posts from Multiple Categories
- Add Date & Author Meta to Category Archive Page
- A dropdown with checklist
- How to store category and tags separatly on wordpress?
- wp_delete_term or wp_delete_category?
- Get post content intro text on category.php?
- Unable to browser posts in categories
- wp_get_post_categories not work currently on loop.php
- Inline If statement to echo CSS [closed]
- Get category base permalink
- Template category.php with page (no posts)
- WooCommerce showing active product categories on single product page
- how to exclude specific category types (uncategorized) from blog page?
- How to set featured image as background for a specific category?
- Confused about category.php template – not working
- Adding relevant categories to related post
- How to assign image on specified category and not show the image on other categories
- How can I add a Categories page link to a menu? [closed]
- Way to show content of a post, but if exceeds character limit revert to excerpt?
- get posts from 2 categories. (2 posts)
- Converting Categories (with ACF fields) to custom taxonomies
- Why does my WordPress index has a category?
- How to get specific number of category post on a page or category page?
- Use same wordpress category base and tags as the prefix as the post permalink
- Display different sidebar based on search results from one category
- Adding category to existing post (uploaded file)