How do I add a custom post type

Custom Post Types are a great feature in WordPress for having entries that do not fall in the standard Posts and Pages buckets. Ex.: portfolio, project, event

The most popular method for registering a Custom Post Type (CPT) is using the Custom Post Type UI plugin.

To add a Custom Post Type, install and activate the above plugin. Then go to CPT UI > Add/Edit Post Types.

Fill in the slug, plural label and singular label fields.

Adding a Custom Post Type using CPT UI

Scroll down to the Settings section and change Has Archive to True.

This will enable the archive (listing) page where all your CPT entries can be seen.

By default, this will be present at<cptslug>. Ex.: You may want to enter the plural term here so that the archive page URL will be (for example).

CPT archive slug

Scroll down and click Add Post Type.