From the course: WordPress: Custom Post Types and Taxonomies

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Organizing your child theme

Organizing your child theme - WordPress Tutorial

From the course: WordPress: Custom Post Types and Taxonomies

Start my 1-month free trial

Organizing your child theme

- [Instructor] So far, we've taken a look at how to modify our child theme and template to format and include our new custom post types and taxonomies, but it's worth noting that there are a few ways to handle that information that we'll explore here. You may have noticed a few things we've done in our child theme. We've leveraged the template hierarchy to create new templates for our custom post types. We've created template parts, specifically for our custom post types, and we've conditionally checked to see if our post type is being used, to change information on what data is shown within templates. You may have also noticed, throughout the code base that the authors of 2019 do the same thing within general templates, like content.php. We could of done the same thing for our business type. We could have modified these more generic templates to check to see if we're using a custom post type or if we're on the single template for a custom post type, and make modifications that way…

Contents