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.
Extending post types with custom fields - WordPress Tutorial
From the course: WordPress: Custom Post Types and Taxonomies
Extending post types with custom fields
- [Instructor] While there are lots of benefits to creating new custom post types with their own URLs and organization structure, there's a lot more you can do with them. Often times you'll find custom post types aren't just the new types themselves but they have custom fields or custom data associated with them. We create new post types because they're housing data that's not necessarily relevant to a post or a page but how do we add that extra data? Well, there are a few ways. First, WordPress does have native support for custom metafields. If you add that support to your post type via the support argument, you'll see a new metabox on the post edit page. You can add one off custom fields that way but this can get a bit tedious as there are other, more robust ways to add custom field support. The most popular way is with Advanced Custom Fields. This is a free plug in that let's you extend any of your post types, modify the post edit screens and much more. It also has a drag and drop…
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)
-
-
-
-
-