Unlock your potential with a Pro Membership
Here is where you propel your career forward. Come join us today. Learn more.
Configuring the Custom Post Type Labels
Lab: Add a FAQ Feature to the Collapsible Content Plugin – Part 2
Video Runtime: 18:33
The arguments for registering a custom post type are configurable to customize the experience and implementation for your needs. Part of that configuration are the labels. The labels are in the back-end. By default, they will use ‘Post.’ Hum, that will not make sense for the user, content strategist, and anyone who is in the back-end adding, editing, or managing the content.
Our job is not just to write code. Nope, you are building experiences. It’s our job to make sure what we build is self-documenting, user-friendly, and draws people in to want to use it.
Configuring the labels customizes the experience to ensure everything is consistent and clear.
Configure the #WordPress CPT labels to improve the experience and make it consistent and clear Share on XYou learned about how to customize the labels in the Configure Labels in the Custom Post Type Basics lab. But let’s expand upon that and make it more reusable.
In this episode, you will learn about:
- Changing your mindset that the
$args
are just runtime configuration parameters to customize the implementation and experience - If you are not using a variable, then don’t declare it
- How to make the labels reusable for any and all custom post types
- Why you want to customize the labels
You are continuing to build the module and refactoring it to be more reusable.
There’s a time to code and …. yup, that sums it up.
Episodes
Total Lab Runtime: 05:11:56
- 1 Lab Introductionfree 07:51
- 2 Planning it Outfree 11:05
- 3 Module Architecturepro 17:12
- 4 Build the Basic FAQ Custom Post Typepro 06:04
- 5 Configuring the Custom Post Type Labelspro 18:33
- 6 Configuring the Custom Post Type Feature Supportspro 07:23
- 7 Configuring the Custom Post Type Optionspro 11:27
- 8 Flushing the Rewritespro 09:44
- 9 Planning the Taxonomypro 04:54
- 10 Build the Taxonomypro 05:33
- 11 Taxonomy Label Generatorpro 14:23
- 12 Flush Rewrite Rules - Taxonomypro 05:36
- 13 Architecting the Archive Pagepro 11:14
- 14 Serve Archive Template from the Pluginpro 10:41
- 15 Let Theme Override Our Archive Templatepro 21:29
- 16 Build the Archivepro 11:09
- 17 Build the Archive Viewspro 13:23
- 18 Set the Order Within the Topicpro 03:44
- 19 Review and Commit Changespro 02:34
- 20 Architect the Shortcodepro 15:23
- 21 Build the Shortcode - Single FAQpro 21:19
- 22 Fixing the Architecturepro 08:00
- 23 Define a WP_Query for Topicpro 16:10
- 24 Continue Building the Shortcodepro 11:39
- 25 Finish by Topic Shortcodepro 08:51
- 26 Planning the Refactorpro 08:01
- 27 Refactor FAQ Modulepro 19:58
- 28 Test, Fix, Commit, and Wrappro 08:36