From the course: WordPress: Custom Post Types and Taxonomies
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Customizing your post type labels - WordPress Tutorial
From the course: WordPress: Custom Post Types and Taxonomies
Customizing your post type labels
- [Instructor] Now that we have a good structural foundation for our business type, let's take a look at how we can customize it even further. In the CPT UI plugin you might remember that there were additional labels and settings that had their own sections. And each of these correspond with the arrays that we've set up, labels and arguments. Let's first look at the labels we can customize. We're going to head to the WordPress codex for the reference to register post type. This website will be your best friend because it shows us exactly what we need to pass to the labels and arguments arrays. If we scroll down the page to the argument section we'll see a full list of all of the arguments that could be passed to register post type. And in the labels array, we'll see a full list of all of the labels that we can customize. So if we go back to our code, let's start with customizing the featured image labels. In the register.php function, we are going to start by setting up some new key…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Creating your plugin3m 16s
-
(Locked)
Building a basic custom post type5m 37s
-
(Locked)
Customizing your post type labels4m 51s
-
(Locked)
Customizing your post type settings3m 13s
-
(Locked)
Activating the REST API on your post type1m 54s
-
(Locked)
Creating a post with your post type1m 56s
-
(Locked)
Challenge: Create an events post type1m
-
(Locked)
Solution: Create an events post type2m 21s
-
(Locked)
Extending post types with custom fields2m 14s
-
(Locked)
-
-
-
-
-