<?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
- Get Category ID inside Category template
- Force category choice before creating new post?
- How to remove category from wordpress url?
- How to create a custom url for a category [closed]
- How to get primary category name in WordPress new version
- Main menu not appearing on category pages
- Rearranging posts based on categories
- How to create category index table out of wordpress site or on other website?
- Custom Nav Walker menu – Display category count
- Multisite blog converting categories to subdomains
- Using URL parameters, list posts from category and custom taxonomy
- Display posts links from a category group by year
- List categories for author: list_categories function inside list_authors function
- How to Make a Categories Meta Box with Hierarchical Checkboxes on Frontend?
- Redirecting specific category to subdomain
- Hide a certain category name without removing it?
- strip last comma from get_the_category
- How to? Redirect /category/sci-fi/ to /category/scifi/?
- How to make all posts in a category sticky?
- WordPress: category page not for post’s
- Exclude a category from the filed under list only on some templates
- Redirecting category link to first child post
- WordPress check if user is logged in from non wordpress page
- Automatically assign posts by author to a specific category
- How to show empty category in admin menus search
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- has_category() for parent category
- Getting the sub category
- How do I remove the tags from wp_list_categories?
- How to insert category and subcategory using ‘wp_insert_post’ function?
- Show posts of category in a page
- How to group the loop posts in a particular by author?
- How to create taxonomy values for pages and list them in wp-admin
- How to display get_the_category of post showing only CHILD of category “X”
- Get ID of current taxonomy in register_rest_field
- display woocommerce all category title on home page
- When to use ‘get_category_by_path’ vs. ‘get_term_by’ to get category object from `get_query_var( ‘category_name’ )`?
- One WP install, I need to map a custom domain name to each category
- Show thumbnail for category?
- Edit the markup of categories list
- Show category children, one level
- a-z list, categories and sub categories in loop
- Category slug $_SERVER[‘REQUEST_URI’];
- If in category to be inside of a function
- How to exclude posts from a category when using this particular format
- Viewing category pages without the word ‘category’ in URL
- wp_dropdown_categories and custom taxonomy + custom post type
- Different excerpt styles per category, but chronological
- Show only one category
- Pagination Not Working on Category.php page
- How to view WordPress’ default category IDs?
- Random taxonomy category list
- Filter Home Page Posts in Buddypress [closed]
- Broken category pagination
- Color different for the current category
- how to change template?
- Multiple Domain Names – One WP Install (non-Multisite) – Default Each Domain name to Product Category WooCommerce
- Show all posts for a specific category/author
- Hard coded main navigation
- Resort get_categories
- one category template for multiple categories
- Display posts separated by Category in Author’s page
- One Specific Category To Permalink
- How can I define a custom archive for childs of a specific category?
- WordPress category widget only show categories with children
- Category shows only top level child categories
- The arrangement of categories always change while posting article
- Woocommerce custom category page with pagination [closed]
- Custom post and category template pagination problem