Custom Post Types

We are all familiar with organising our time using diaries and calendars. We know it's nice to organise kitchen drawers with cutlery inserts. So when it comes to websites, we shouldn't be surprised that there is a smart way to organise your content.

This episode looks at what a custom post type is and why they can help you create a much more organised WordPress website. It'll look at how to use custom post types effectively to improve the structure and make it better for your website visitors.

Having a custom post type may take a few of your grey cells to understand but once the penny drops, you'll be wondering why more people don't use them on their websites. A classic no brainer situation.

Transcript

This episode is all about designing your way to a smarter website. Smarter content. Smarter structure. Just well you know smarter. We’re going to be streamlining the process for adding new content which means you’ll get a website that works better. Bit of a bold statement I know but over the next few minutes, I’ll be explaining what a custom post type or CPT is, when and why we use them and how you can get your hands on them. I’m pretty sure that you’ll get to the end of the episode, put your hands together and then with a nod as if to say – yep, Amy you were so right. Now we get it. Now we get it.

First, we need to know what we mean by post type. When you work with WordPress you have two main ways you can add new content – posts and pages. Posts usually relate to your blog or news articles. A page is the more static, evergreen content such as the About page or Contact page. For a simple site this is enough. But what if you were a graphic designer and wanted to add portfolio items, testimonials, and case studies to your website. You could add all of those into blogs and assign tags and appropriate categories but over time things would soon get messy. That is where custom post types come in.

They let you create your own type of post such as a Portfolio post or Testimonial post. Each type of custom post can have its own custom fields, its own layout, and even its own way of being displayed on the site. This means that once set up, you can go into your website to add for example a new testimonial and instead of faffing in posts, you can go straight to the custom post type and add it in there.

For example, on my own website, twocowsweb.co.uk, I’ve created a custom post type called ‘Podcast’ which I use to add new episodes to my website. I’ve set up where I want the title to go, where I want the podcast player to go and where I’d like to put in a suitable image and so on. This helps me to get new podcast episodes onto my website faster and in a much more organised fashion.

Another example of custom post types can be seen on the 007 website and yes we are talking Bond, James Bond. where they use post types for vehicles, films, and James Bond related experiences. I think you get the point.

So now you know what a custom post type is and why we use them for better web design, I’m guessing you want to know how we get them on our websites. We have two main ways: Option 1 and option 2. Option 1 is the easiest option. You can install a custom post type plugin. The most popular set up is using Advanced Custom Fields (ACF) along with Custom Post Type UI. I prefer to use a plugin called Pods so there are a few alternatives. This is the no code way. However, if you’re a developer, you’ll no doubt choose option 2 which is to code your new custom post type.

Let’s be clear here. Custom post types aren’t just a geeky WordPress feature — they’re a way to build websites that actually make sense to people. They can be tricky to set up but as with everything there’s a tutorial for that somewhere or there’s someone who has done it before and can help. A word of warning. Don’t DIY it if you’re out of your comfort zone. My advice will always be to give it a try and if it doesn’t work out, you can still ask for an expert to step in and help. Custom Post Types needn’t be a dark art and I guarantee that you will be thanking me later when your content is much easier to manage! You are welcome.

Got a web design question?

Give me a shout and I’ll keep the answer short and simple!