“Is there an issue with foreach, if, else in WordPress php?”
I have been trying to add else to my foreach loop where it shows categories and subcategories. But if there is no categories available then I want it to show a text where it tells that there is no categories…