As you grow in WordPress, you will begin to uncover functionality that is not necessarily documented in WordPress Codex. You’ll find yourself exploring the source code to find the function or construct that you need. Earlier I showed you the
get_categories() function. Let’s take a look at some of the other functions that are available to you to work with taxonomies and terms.
Don’t be afraid to explore WordPress’ source code. It’s one of your best resources for finding functionality and improving your understanding of it.
I show you a shortcode in PhpStorm to exploring all of the functions in a file by using the Structure tab.
I’ll also show you how to assign a taxonomy to a post type. For example, you’ll assign the
category taxonomy to Pages. You’ll see how easy it is to customize.
WordPress gives you the means to add new custom taxonomies. In this hands-on lab, you will explore configuring and registering a new taxonomy for the team biography plugin you built in the Custom Post Type Basics lab. Plus, you learn some basic PHP string building and handling.
Check out the WordPress Fundamentals Library for more hands-on labs, insights, Docx, and more.
Check out the series page for more labs: WordPress Built-in and Custom Taxonomies and Terms Series
If you listen carefully, you can hear the 1s and 0s flowing in your computer.
Total Lab Runtime: 01:17:16
- 1 Lab Introductionfree 02:17
- 2 What is a Taxonomy?free 10:12
- 3 What are Terms?free 08:53
- 4 Relationship Between Post, Taxonomy, & Termspro 14:22
- 5 Get the Registered Taxonomiespro 15:35
- 6 Dive into WordPress Corepro 03:17
- 7 Get the Terms for a Taxonomypro 08:19
- 8 Get the Taxonomies for a Post Typepro 02:50
- 9 Archive for Taxonomy or Termpro 04:14
- 10 Explore Other Functionspro 07:17