If you select both categories for the post the_category() will display both and using multiple will make the child category display the parent relationship, so you will have the parent twice. If you want to display a link to the parent category and a link to child category select only the child category for the post and use the_category("https://wordpress.stackexchange.com/", 'multiple');.
Related Posts:
- Check if current category has subcategories
- wp_nav_menu not appearing for a couple pages
- wp_update_nav_menu_item() to insert categories
- How to get the url to tag & category base set by the user?
- Why adding Categories does not auto refresh in Backend while using my custom theme?
- is_archive() content being shown instead of is_category()
- Retrieve all posts within tag OR category?
- Edit the markup of categories list
- New Theme creation
- How to get data about category in category.php
- editing fonts of category links from the_category() funtion
- How to check category of of custom post type or not
- Set a them for all subset of category
- How to call custom category field data in theme?
- Different templates for different category tags
- Why category.php throw 404 in wordpress while calling paginate_links()?
- Woo Framework: woo_cat_featured not populating
- Inside a loop, how to change CSS class based on category name?
- Question on using custom structures for categories
- Getting the category title / description returns first matching post?
- Allow user to select categories that will display in post loop
- Insert HTML content in WP Query at specific point
- How do I retrieve the category ID (ugly permalinks) in my sub-navigation menu?
- Category page returns 404 error
- Add description to categories menu in admin
- filter a loop base on specific category
- Problem with multiple loops in wordpress theme
- How to add icon over specific thumb
- How to differentiate the homepage structure from the category page structure in WordPress template?
- How to detect /category and /tag base pages?
- WooCommerce shared categories
- Show the number of the post
- Products category search not working
- In if…else condition, the else statement shows even if if statement is correct
- Can’t display posts by filtering categories using isotope.js
- Media Library Categories
- How can I add HTML classes for current taxonomy/term hierarchy into my pages to simplify styles?
- Change single.php template based on parent category
- Show posts from all categories
- If it is a top level category show children otherwise show sibling categories
- Lowest catagory link
- How to get multiple loop in category.php, my scripts becomes madness
- Category base 404 – fix
- altering theme – content generated by PAGES not PORTFOLIO
- Category Archives: Show posts categorized in parent category only
- WordPress 3.5 how to determine if user is on category listing or category edit screen?
- Display only one level subcategory in wordpress
- How can i hide the authors box from a specific set of categories and post types?
- Get all first images of posts in same category
- How to display the category featured images [closed]
- How to make /category/ URL load properly instead of 404 error?
- Is There a Difference Between Taxonomies and Categories?
- Get rid of WordPress category, tag and author archives?
- Filtering categories in the permalink structure
- Why aren’t sub-categories nested after creating post in the WP Admin?
- Preventing index.php?category_name=something from redirecting
- How to get category id of current post?
- Trash bin for categories
- Categories’ hierarchy in URL
- Display one category in one page
- How to get next previous category in same taxonomy?
- Check is category parent or not from its ID
- Which php file lists all the post of a category
- How to query posts from specific authors and categories using WP_query?
- Apply custom category template to subcategories
- How to customize tag and category post listings to show introductory content?
- List Terms in Category
- Can you have a single set of “canonical” categories shared by all blogs?
- How to customize category template?
- Customized landingpages for categories
- get_the_category_list open in parent window
- Class active for Archive link – looped out
- Get parrent category name
- Remove sub-menu item from admin menu
- How to add WordPress sub category without select
- Randomly load categories with latest post
- Is it possible to remove from default category widget?
- WordPress alphabetical A-Z custom post type post result display
- Count category views – Is it possible?
- wp_dropdown_categories not showing option as selected
- How to check if a post belongs to a category that has only 1 posts?
- If x comments in a post move post to category y
- Count tags for a specific category
- wp_list_categories walker without links on categories that have subcategories (to make a nested dropdown menu)
- Adding additional content on post depending on post categories
- Root category template?
- wp_list_categories not excluing multiple ids
- Custom meta boxes ID prefix showing on first category but not others
- Exclude category from foreach loop
- ID of last created category
- Problem: retrieving parent category’s first post
- Category URL Management
- How can I display a list of categories of my posts
- List of post categories only associated to another custom taxonomy
- List all categories and count number of posts within based on custom date
- Custom Category Archive Pages
- A search box for all sites – Multisite
- how to display page title only for child category pages
- Only show sub-category
- Style sub categories differently from its parent category