Exclude parent categories from the_category() within the loop

Have you tagged the post in Food, Food:Corn, and Food:potatoes? Try categorizing it in Food:corn and Food:potatoes only.

I do not believe that there is a means to exclude categories from the_category() function. You will have to use another function to create a custom query to do so.

Try some of these.