How to add Categories to Pages in WordPress

If you build sites using WordPress as a CMS you might have wanted to add categories to pages.

Well, look no more, here’s the snippet that will save your life 🙂

Paste the following code into your functions.php file of your theme and you’re set.

Notice you can also add categories to any custom post type you might have created.

No comments yet, leave yours!

Leave a Reply

Add <code> Some Code </code> by using this tags.