lol, lemme just update this…
the code I’ve posted yesterday works if it’s about 1 category..so it will show only 1 at the time..here’s something much better and easier…thanks to esmi 😉
wp_list_categories(‘title_li=&depth=1’)
thanks again!
kind regards,
zerovic
made it! after searching on the net, i have found a nice code which does the job!
$parentscategory =””;
foreach((get_the_category()) as $category) {
if ($category->category_parent == 0) {
$parentscategory .= ‘ cat_ID) . ‘” title=”‘ . $category->name . ‘”>’ . $category->name . ‘, ‘;
}
}
echo substr($parentscategory,0,-2);
thanks a lot, however, i don’t want to hide every single sub-category one by one…is there any code to show the parent categories only?!