Display selected categories onto post page
If what I understand from your question is correct. You have a post that categorized in multiple categories and subcategories. I have already made the same in a website. use these following code bellow so a sub categories will displayed after the parent category. //first part $allcats = get_the_category(); $parent_id = $all_ids = array(); foreach … Read more