Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 7. Taxonomies > Creating Custom Taxonomies

7.2. Creating Custom Taxonomies

Now that we’ve discussed what custom taxonomies are and why we’d want to use them, let’s go to the real heart of the matter: creating them and using them to our advantage.

7.2.1. Registering a New Taxonomy

Creating new taxonomies in WordPress is a relatively simple process, and WordPress provides us with a function that accomplishes the job: register_taxonomy(). You should always use the init action hook when calling register_taxonomy(), or else you will incur fatal errors, and nobody likes anything that includes the word “fatal”, do they?


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial