Out-of-the-box, WordPress gives you built-in taxonomies which are used to group like or similar content together. You use categories and tags to add contextual information about the content and give readers additional mechanisms to explore and discover. In this hands-on lab, you will interact with and change the built-in taxonomies. This is an introduction to taxonomies, which will prepare you for building your own custom taxonomies.
What Will You Learn?
In this lab, you will learn about WordPress taxonomies, terms, and the relationship to post types. You’ll learn what they are, where they are stored in the database, hierarchy, how to assign them to different post types, and more. You’ll explore the different built-in functions to interact with them.
In order to do this lab, you will need a local sandbox site spun up and ready to go. See this Help Center article to get your sandbox ready.
Code. Eat. Code. Sleep. Dream about Code. Code.
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
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