Thanks again for such a great plugin (+the categories one).
I’m trying to stop the categories being displayed for users that don’t have any posts available to them in that category.
e.g. when outputting a list of categories, we are shown the category name (with number of posts) but this doesn’t take into account the user access. It may say there are 3 posts in that category but the user doesn’t have access to any of them so I’d like to hide the category completely for that user.
Do you know of a function I could add to hide categories if no posts for that user?
Many thanks in advance