Objective: How to fix a belt hanger in the closet?

Which of the following solutions is more sound in terms of naive physics reasoning?

Choose from:
[a]. Fix a strong yet slim wooden or metallic rod vertically in one of the compartments of the closet.;
[b]. Fix a strong yet slim wooden or metallic rod horizontally in one of the compartments of the closet.;
[b].