Hi, I have been search the forum and not able to fine exactly what I am looking for.
$category = get_the_category();
if ($category) {
foreach($category as $category) {
$getcrumbs.= $separator . "<span typeof=\"v:Breadcrumb\">
<a rel=\"v:url\" property=\"v:title\" href=\"".get_category_link($category->term_id)."\" >$category->name</a>"."
</span>";
}
}
echo $getcrumbs;
the above shows the sub category first and the parent category at the last.
I am try to figure out how get parent category first and then sub category.