i'm trying to produce a blog along with a portfolio (in one) wordpress theme

im using groups for my posts (as numerous other blogs). i'm one category named portfolio, to ensure that i'm able to distinguish my portfolio publish in the blogs.

when use click among the portfolio publish they visit a page, where they acquire some pictures from the project and explenation. additionally they might find the kind of project it's: website design, graphics, print, demos

all above are child groups from the portfolio category. therefore when customers click the project publish, they have to see the kind of project it's

so it is possible to method to show the kid group of the publish i attempted the_category() - it shows parents and also the child - I attempted the_category('exclude=10') nothing pops up (not really a mistake message)

i'd be grateful should you could is there a problem of methods to exhibit the kid category only.

also, could it be ok (sound practice) the truth that i made the decision to make use of child groups for portfolio posts


i discovered the reply to my problem

    foreach((get_the_category()) as $childcat) {
if (cat_is_ancestor_of(10, $childcat)) {
echo '<a href="'.get_category_link($childcat->cat_ID).'">';
 echo $childcat->cat_name . '</a>';}}

this is exactly what the writer states:

It requires the groups from the publish being displayed, inspections to ascertain if one is definitely an ancestor from the selected parent ('10' during my situation), and results the title of this child category within the echo.

I found it here

it really works when i needed it to so im happy