WordPress is ignoring “hide_empty = 1” for child categories
-
I have a piece of php I am trying to use in WordPress that gets all the children categories of a specified parent category, then displays all the posts in that child category.
See example at: http://cwtagency.com/cohaa/sessions-day-one/.
The time block is a child category (parent is “Day 1 Sessions” or “Day 2 Sesssions”, and the content in the square is the post that is in that child category.
Below is the code I am using to do this. It works beautifully, except that it seems to be ignoring the “hide_empty = 1” portion. Any ideas as to why this might be?
[Code moderated as per the Forum Rules. Please use the pastebin]
- The topic ‘WordPress is ignoring “hide_empty = 1” for child categories’ is closed to new replies.