How to Create a Custom Post Type in WordPress

Picture of Sifat Rana

Sifat Rana

Wordpress Developer

Problem

By default, WordPress only has Posts and Pages. Many projects need custom content types (portfolio, testimonials, products).

Step-by-Step Solution

Install Plugin

Use “Custom Post Type UI” plugin for beginners

Create Custom Post Type

Go to CPT UI → Add New CPT

Example: Portfolio

Labels: Portfolio, Portfolios

Menu icon: choose suitable icon

Public: Yes

Has Archive: Yes

Create Custom Fields

Install ACF (Advanced Custom Fields)

Add fields like Client Name, Project URL, Project Date

Assign fields to Portfolio CPT

Display CPT on Website

Create Elementor Archive Template (Dynamic Post Grid)

Add dynamic fields: title, image, custom fields

Optional: Custom Taxonomy

Create categories for filtering Portfolio

Example: Web Design, Graphic Design

Result

Fully functional custom post type

Can manage projects, portfolios, testimonials easily

Can display dynamic content anywhere with Elementor

Pro Tips

Always use descriptive slugs

Enable archive for better SEO

Use Elementor dynamic widgets for better layout

Related Post

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top