This guide shows you how to add custom post types to your WordPress website, such as portfolios, testimonials, or product showcases.
What Are Custom Post Types?
WordPress comes with two main content types: posts (for blog articles) and pages (for static content like your About page). Custom post types let you create additional content types for specific purposes, such as:
- Portfolio items to showcase your work
- Testimonials from customers
- Products or services
- Team member profiles
- Events or news items
Method 1: Using the CPT UI Plugin (Recommended)
This is the easiest method for beginners.
Step 1: Install the Plugin
- Log into your WordPress admin dashboard
- Go to Plugins > Add New
- Search for "Custom Post Type UI"
- Click Install Now on the plugin by WebDevStudios
- Click Activate once installed
Step 2: Create Your Custom Post Type
- In your WordPress admin, look for CPT UI in the left menu
- Click Add/Edit Post Types
- Fill in these fields:
- Post Type Slug: A short name with no spaces (example: "portfolio")
- Plural Label: What visitors will see (example: "Portfolio Items")
- Singular Label: Single item name (example: "Portfolio Item")
- Leave other settings as default for now
- Click Add Post Type
Step 3: Add Content
- You'll now see your new post type in the left menu (example: "Portfolio Items")
- Click it and select Add New
- Add your content just like creating a regular page
- Click Publish
Method 2: Adding Code to Your Theme
This method requires editing files and is more advanced. Only attempt this if you're comfortable with code.
- Go to Appearance > Theme Editor
- Select functions.php
- Add the custom post type code at the bottom of the file
- Click Update File
Warning: Always create a backup before editing theme files. Mistakes can break your website.
Displaying Your Custom Post Types
After creating custom post types, you need to display them on your website:
- Create a new page using Adding Pages to Your Website
- Use a plugin like "Post Types Order" to control how they appear
- Add the page to your website menu using Creating WordPress Menus
If you're still stuck or need help setting up custom post types for your specific business needs, contact our support team through your Web60 portal.
FAQ
Q: Do custom post types work with all WordPress themes?
A: Most modern themes support custom post types, but the display might vary. Some themes include special templates for portfolios or testimonials.
Q: Will I lose my custom post types if I change themes?
A: No, your content stays safe when changing themes. However, the way it displays might change depending on your new theme's design.
Q: Can I add custom fields to my post types?
A: Yes, you can add extra fields like price, location, or contact details using plugins like Advanced Custom Fields or CPT UI's built-in options.
Q: How many custom post types can I create?
A: WordPress doesn't limit the number, but for most small businesses, 2-4 custom post types is plenty. Too many can make your admin area confusing.
Q: What's the difference between categories and custom post types?
A: Categories group similar content together, while custom post types create entirely new content formats. Use custom post types when content needs different fields or display styles.
Q: Can I change the post type slug after creating it?
A: Yes, but this will change your URLs and might break existing links. It's better to plan your slug names carefully from the start.
Last updated: 1 March 2026