As for Example say i have two categories “abc” and “xyz” under this two categories there are several categories. I need to fetch all the sub categories from all the categories.
The categories are dynamic means it may increase i have shown with two.
Is there any functions for wordpress defined already? I couldn’t find any can anyone help me with the code??
Thanks
Rahul
Maybe get_categories() will help ya!
Something like this: