Creating custom post type templates


show more Creating custom post type templates provides you with in-depth training on Design. Taught by Morten Rand-Hendriksen as part of the Create an Online Portfolio with WordPress show less
please wait ...

Creating custom post type templates

At this point we've created three new custom post types with their respective custom taxonomies and we populated those custom post types with different types of content. But what's the point of having custom post types with types of content if we don't display them differently depending on what content is there? For example, if we are going to display the content, shouldn't we also be displaying the custom taxonomy information for each of them? This can be done very easily using a feature in WordPress that allows us to create custom templates for each custom post type.

By default, when you run WordPress and you open a post, let's say for instance the Pizza Primavera post, WordPress will use the standard single post template, the same one that's used when you open a regular blog post. But if we create a new file, we can target the recipes post type exclusively, and create a template that's only used for the recipes. To show you how this works I am going to o...

Creating custom post type templates
Video duration: 6m 50s 3h 13m Advanced

Viewers:

Creating custom post type templates provides you with in-depth training on Design. Taught by Morten Rand-Hendriksen as part of the Create an Online Portfolio with WordPress

Subjects:
Design Web
Software:
WordPress
Author:
please wait ...