How to add Categories to menu in WordPress


Octocat **Promotion** - Efficiently manage your coding bookmarks, aka #codingmarks, on www.codingmarks.org and share your hidden gems with the world. They are published weekly on Github. You can help us build THE programming-resources location - 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.

New codingmarks added in the 22nd week of 2018

New codingmarks added in the 22nd week of 2018. Keywords: architecture, cryptography, email, glossary, java, javascript, pki, publish-subscribe, rfc, security, web and x509 Continue reading