I have a lot of categories in my blog. When once I wanted to link to some single category, I can’t use wp_list_cats because that means I have to exclude lots of other categories, which is too complex. So the way you posted here was exactly what I did. Using the id of that category itself as the input parameter for get_category_parent makes my life a lot easier. Thanks.
You are right. it’s useful for the moment. Thank you!!!
I’m still wondering why this the_ID does not have any paramenter. What if I want to refer to another post id when I’m in this post?