Creating an index page for a custom post type


show more Creating an index page for a custom post type 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 an index page for a custom post type

Now that you've created and populated three custom post types complete with custom taxonomies and custom post templates, you probably think there's an index page much like the standard reverse chronological blog page waiting for you somewhere. Sadly, that's not the case. This is one of those mysteries WordPress serves up and I have no explanation for you. To get an index page for your custom post type, you have to create a template yourself. Don't ask me why. That's just the way it is. The good thing is it's really easy to do.

It's basically just a matter of naming the files right. So right now, although we have the recipes in our site and we can see them, the user who visits the site has no way of accessing them. So what we need to do is create an index page for our recipes and our photos and our videos. We're going to do that by creating a new file called archive- and then the name of the post type. The good thing is all themes come equipped with index pa...

Creating an index page for a custom post type
Video duration: 8m 10s 3h 13m Advanced

Viewers:

Creating an index page for a custom post type 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 ...