I'm implementing a wordpress website and there are lot of categories has been created on admin panel. But I don't want to display the categories in the menu which does not have any post assigned to them.
Is it possible to add a bit of code to hide the categories in the menu that don't have posts assigned to them? If yes, could anybody help me to get the solution?
Thanks in advance!