Join Morten Rand-Hendriksen for an in-depth discussion in this video Assets and exercise files, part of WordPress: Custom Post Types and Taxonomies.
Custom post types and custom taxonomies are not directly related to any one theme or any one specific type of WordPress site. And in this course, I'll show you how you can create custom post types and custom taxonomies and wire them in to any solution that you have in front of you. That means you don't have to duplicate my site exactly. And it also means you can use any theme you want and any code editor you want as you follow along in this course. Before I go any further, let me just show you what I have set up so if you want to you can duplicate my process.
I'm on a Windows computer and I'm using WampServer to run WordPress locally on my computer. This theme was created in the WordPress building themes from scratch with underscores course right here in the lynda.com library. So if you want to learn how to develop this theme from scratch, you can do so by watching that course. The content I have on my site is the theme unit test data from WordPress.org. You can simply download it and import it into your site. Now, we're not actually going to use any of this content. I'm only placing it in the site so that I have some content to show before we start adding the custom post types.
This course requires quite a bit of code. So to simplify the process, I've created a code snippets file for you that you can find in the exercise files on the course page for this course. All the code snippets are contained within the single HTML page. And on that page you can navigate to any chapter or any specific movie within the course. And when you go to that movie you'll see the full breakdown of all the code necessary to duplicate what I'm doing. In some of the movies I will refer directly to this code snippets file and copy code directly over.
In other movies I'll write the code myself, but in both cases you'll be able to find the exact code that I am writing in this code snippets file, so if you just want to copy and paste and follow along that way, you can. Finally, throughout the course, I'll be referring to the Wordpress Codex. This is the documentation page for all functions and functionalities within Wordpress. And this is also where you find extra information and further variables and such about the functions that we're going to be using in the course. So whenever you see me referring to the Codex, or if you see I'm doing something and you want to know more about that particular function, you can simply go to the Codex and find out.
One last note on the code editor. In this course I'll be using the Adobe Edge Code Editor, but you can use any text editor to follow this course. The only reason why I'm using Adobe Edge Code is because it makes it easy for me to see my file structure, and it's also a fairly simple code editor. If you have another preferred code editor, or an IDE that you want to use instead, you are free to do so. The tool you use to write the code here is not important, it's the code itself that matters.
- 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.