WordPress: Custom Post Types and Taxonomies

WordPress: Custom Post Types and Taxonomies

2h 10mAdvanced2019-08-08

Authors

Joe Casabona

Joe Casabona

Course Developer, Founder of Creator Courses

Course details

WordPress is a powerful content management system—but it shines with customization. For example, there are seven default post types, organized using built-in taxonomies like categories and tags. But you can display different types of content according to your own rules by creating custom post types and taxonomies. Best of all, you can customize these elements without a lot of code. In this course, Joe Casabona shows how to create new post types and taxonomies, create a theme-agnostic plugin to house them, and build templates that display the custom post types in effective ways. Plus, learn how to move your custom post types and taxonomies to existing themes to leverage them in current sites.

Learning objectives
Defining custom post types and taxonomies
Creating custom post types without code
Displaying new post types on the front end
Building custom taxonomies without code
Importing and exporting taxonomy data
Creating custom post type templates
Moving custom post types to your theme

Skills covered

WordPressContent Management Systems (CMS)Web DevelopmentOpen SourceDeep Dive (X:Y)

Concepts

Introduction

  • Create better content
  • What you should know
  • Demo project overview

What Are Custom Post Types and Taxonomies

  • What are custom post types
  • What are custom taxonomies
  • Where does the code belong

Creating Custom Post Types without Code

  • The no-code solution
  • Creating custom post types
  • Creating custom post type labels
  • Custom post type capability settings
  • Displaying your post type on the front end

Creating Custom Taxonomies without Code

  • Creating custom taxonomies
  • Creating custom taxonomy labels
  • Customizing the taxonomies' settings
  • Importing and exporting your data

Coding Your Own Custom Post Types

  • Creating your plugin
  • Building a basic custom post type
  • Customizing your post type labels
  • Customizing your post type settings
  • Activating the REST API on your post type
  • Creating a post with your post type
  • Challenge - Create an events post type
  • Solution - Create an events post type
  • Extending post types with custom fields

Coding Your Own Custom Taxonomies

  • Building a basic custom taxonomy
  • Creating an advanced custom taxonomy
  • Activating the REST API for your taxonomy
  • Adding taxonomy terms to your post types
  • Challenge - Make location taxonomy
  • Solution - Make location taxonomy

Creating Custom Post Type Templates

  • The WordPress template hierarchy
  • Setting up your child theme
  • Creating a single custom post template
  • Modifying the single template header
  • Creating a custom post archive template
  • Adding a custom taxonomy to a template
  • Creating a custom taxonomy template

Custom Post Types and Taxonomies in Other Templates

  • Custom post types on the front page
  • Organizing your child theme
  • Creating a custom loop for post types
  • Displaying the custom loop
  • Styling your custom loop

Moving Your Post Types to Your Theme

  • Warning - Custom post types in themes
  • Adding custom post types to themes
  • Automatically flushing rewrite riles

Conclusion

  • Next steps
80,000 Toman