Let’s say you want to create a website about traveling guides for different cities. You may want to add city names in your navigation menu and show relevant articles when users click on that link.
This is where categories come in. WordPress comes with a powerful built-in system that allows you to sort your content into taxonomies.
By default, you have two taxonomies ready to use with your posts. These taxonomies are called categories and tags in WordPress.
Categories are hierarchical, and they are supposed to be used for a broader range of topics. Tags are non-hierarchical, and they can be used to sort articles for very specific topics.
You can add or select categories while writing your blog posts. The categories meta box will appear on the right column of the post editing screen.
Once you have created a few posts and filed them under different categories, you can now add these categories into your site’s navigation menu.
Simply visit Appearance » Menus and click on the categories tab to expand it.
Next, select the categories you want to add to the menu and then click on Add to menu button. Your selected categories will now appear in the right hand column as menu items. You can move them up and down using drag and drop.
Once you are satisfied with the menu, click on the save menu button to store your changes.
You can now visit your website to see your changes in action.
Since categories are hierarchical this means that they can have parent and child categories.
Most WordPress themes support multi-level menus. If you are using sub-categories, then you can easily add them under the parent category by moving them slightly towards right.
This way you can create awesome drop-down menus that could cover all your important topics. This will also help your users quickly find the information they need.