loop display list top parent categories except the current parent category

Question

The website is look like this

Cat 1
— Sub cat 1
— Sub Cat 2

Cat 2
— Sub cat 1
— Sub Cat 2

Cat 3
— Sub cat 1
— Sub Cat 2

I wish add a div to the parent and its child Category. In this div I wish list of all top parents except the current.
For example in Cat 3 and its sub Cat display the Cat 1 and Cat 2 links category.

I made some research but not found a working solution….

0
Lust 4 months 0 Answers 12 views 0

Leave an answer