http://pasted.co/a2169175
The code is slightly modified and now I can see “lollipop” (parent cat name and url pointing that parent cat). But for other post which doesn’t have parent category lost category output.
For example when the post “I like sweet things” belongs to “gummy” that has no parent, there will be no cat name output (neither gummy nor its url pointing to gummy). As a result inside <span class=”category”> becomes empty.
I think this code above only works for the post that belongs to category which has parent.
[Summary]
*With the very first code http://pasted.co/b5f13504 works fine only for the post belongs to category which doesn’t have parent.
*With the second code http://pasted.co/a2169175 works fine only for the post belongs to the category which has parent.
I need to somehow combine those two…