Unlock your potential with a Pro Membership
Here is where you propel your career forward. Come join us today. Learn more.
Explore Other Functions
Lab: WordPress Built-in Taxonomy Basics
Video Runtime: 07:17
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.
What to Do Next?
Your functions are bloated. Put them on a diet. Think "skinny" and "as few lines as possible."
Episodes
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