Learn how to make custom post types available from the REST API.
- [Narrator] Since the original recording…of this course (mumbles) to us…to extend and to include a REST API.…If you are not familiar with REST APIs…and you want to know why having one represents…such a big deal, I encourage you to go to check out…my WordPress API course series, but I digress.…As you saw in the chapter on the custom post type UA plugin,…you can choose whether your custom post types and taxonomies…will be available as routes in the WordPress REST API.…By default, they are not, so if you want to make…your custom post types and taxonomies available…via the REST API, they have to be activated manually…one at a time; this is done in the arguments array…with some new arguments; there are three arguments for…custom post types; show_in_rest, rest_base…and rest_controller_class; these two first ones…you'll use all the time; the last one,…rest_controller_class is for edge cases…where you're doing something pretty advanced,…so we'll only cover the two first one in this course.…
These arguments work just like any other argument…
- What are WordPress custom post types and taxonomies
- Creating and testing the plugin
- Creating posts with custom post types
- Building basic custom taxonomies
- Creating custom post type templates
- Including custom post types in the front page index
Skill Level Advanced
Q: This course was updated on 06/22/2017. What changed?
A: New videos were added that cover the Custom Post Type UI plugin; creating custom taxonomies; exporting and importing custom post types, taxonomies, and settings; and making custom post types and custom taxonomies available from the REST API.
1. Understanding Custom Post Types and Taxonomies
2. Creating a Plugin for Custom Post Types and Taxonomies
3. Creating Custom Post Types
4. Creating Custom Taxonomies
5. Creating Custom Post Type Templates
6. Working with Custom Post Types and Taxonomies
7. Going Further with Custom Post Types
Thank you!1m 35s
8. Tying Custom Post Types and Taxonomies to a theme
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.