How to loop posts even if category does nt have sub-categories
-
Hello, i have this code: https://pastebin.com/tF2c63Mb
Now posts show only on sub-categories. I need to show posts even when category doesn’t have sub-categories.
I need like this:
Category – > Show postsNow its like this:
Category – > Posts don’t show
Category -> Sub-category – > PostsI purpose that the code needs to check if category does not have subcategory ant then loop posts.
Maybe anybody knows hot so solve?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to loop posts even if category does nt have sub-categories’ is closed to new replies.