In the last episode, you and I registered a custom taxonomy with the minimum configuration. But look at the taxonomy interface in the back-end. What do you see? The top of the page says “Departments” but the rest of the interface says “Category.” Hum, do you think that will confuse your customer? Yes, it will.
One of our jobs as a WordPress developer is to make the interface as easy to use as possible. That means we need to make sure the labels are right, instructions are clear, and the entire interface is clear and self-supporting. You don’t want them to be misleading or confusing. Why?
Why should you take the time to make the interface clear and helpful? To empower your customer to be able to use it on their own without your help. You want your customer to be capable of writing, editing, changing, deleting, and managing their content on their own. Otherwise, what happens? They need up being dependent upon you. They open support tickets and take your valuable time away from your other paid work. That means for you: your profit margin is decreasing with each question, i.e. assuming that you are not being compensated.Pro Tip: Make the interface easy to use and clear to empower users. #WordPress Click To Tweet
In this episode, let’s walk through how to customize the labels for our custom taxonomy. Step-by-step, let’s walk through the process. We’ll go through each label and see where it changes the label in the back-end.
You’ll learn about the internationalization functions and when to wrap your label strings in the
_x() and why.
Here is the link to
register_taxonomy() in the WordPress Codex.
You will grow in this profession when you incrementally and systematically stretch yourself....bit-by-bit.
Total Lab Runtime: 01:30:53
- 1 Lab Introductionfree 08:15
- 2 Custom Taxonomy - The What, Why, and Whenfree 08:32
- 3 Registering a Custom Taxonomypro 09:54
- 4 Configure the Labelspro 14:51
- 5 Bind to Post Typespro 11:55
- 6 Configuring Argumentspro 07:52
- 7 Render Entry Footer Termspro 08:40
- 8 PHP 101: Concatenating Assignment Operatorpro 02:26
- 9 PHP 101: Building Stringspro 08:19
- 10 Test Entry Footer Termspro 03:03
- 11 Flush Rewrite Rulespro 03:56
- 12 Wrap it Uppro 03:10