How to add Categories to menu in WordPress


Dev-Bookmarks Logo

Save up to a workweek a year by efficiently managing your dev bookmarks, on www.bookmarks.dev. Share your favorites with the community and they will be published on Github - Star


In this post I will present how to quickly add a “Categories” entry to the menu of a WordPress standard theme. Because I am by no means an expert in WordPress and PHP yet, I wanted to avoid having to customize anything.

So here’s the trick:

In the Dashboard > Appearance > Menus section add a new entry under Links with the URL set to “#” and Link Text set to “Categories”. Once you’ve done click Add to Menu and then from Categeories pull and drop in the Menu Structure the ones you want displayed as sub-items under the newly created entry.

trick for categories

Dashboard printscreen after completing the trick

But, this is better shown than written:

Of course you can use this technique to add other main navigation entries.

Discover a collection of more than 10k curated dev bookmarks

We have recently reached a second major milestone on www.bookmarks.dev. There are now more than 10k curated public dev bookmarks available. There are resources for programming languages like java, rust, go, python, for query language like sql, graphql to exotics like genetic-algorithms and astronomy Continue reading

New dev bookmarks in february 2019

Published on March 10, 2019