How to Use WordPress Categories and Navigation Menu Together

I came across an unusual question this week: The questioner wanted to know how to assign blog posts to specific pages that would be displaid in the blog menu.

Their blog is a cookery blog and they wanted to be able to write a post that would be (for example) an Italian recipe, and allow searchers to see and navigate to it through a menu item entitled ‘Italian Recipes’.

Here’s how you would do that:

The WordPress navigation menu enables you to include Categories in the navigation bar. Categories are also hierarchical, so you can have parent and child categories.

You can also include ‘Custom Links’, so it would be easy to create this set up.

WordPress navigation menu screen

So create a category called ‘Recipes’ and then make that the parent category for a series of sub-categories, one for each type of recipe: e.g. – Italian Recipes, French Recipes, etc.

Then you can create categories in your navigation menu by adding ‘Category’ items.

To create a child category in the navigation menu add more ‘Category’ items under the initial one, but drag them slightly to the right. This will cause them to drop down as sub-menu items in the navigation bar.

Then I’d assign each recipe post to the relevant sub-category – but only that sub-category, i.e. One sub-category per post.

And finally I would add Custom menu items for each recipe and add them under the relevant sub-menu item.

So here’s what your navigation menu would look like on the Appearance > Menus screen:

Navigation menu with sub menus

And here’s how it would appear on the front of the site:

Navigation menu with sub menus on the front of the site

Cheers,

Martin Malden

Martin Malden
Owner – WealthyDragon

Website owner: Martin has been working online since 2006 and focuses on two areas: 1) affiliate marketing and 2) designing and building websites based on WordPress. He has his own WordPress agency, and serves clients in Hong Kong, Australia and the UK.