Separating Category and Sub-Category

Hi! I tried the code from here ( but it doesn’t seem to work on mine.

Perhaps because my post shows 1 Primary category and 1 sub-category?

Any ideas?

Hi @hdossary,

I hope you are well today and thank you for your question.

Could you please share me your site URL where it’s happening so that i can troubleshoot it?

Kind Regards,