Admin
Content Model

Create a Custom Post Type in Purple Hub

7min

Purple Hub



Summary

In this article, you learn how to create a Custom Post Type in Purple Hub. You will name it, create a slug, for your Post Type term and enable excerpts for it. We will work with the example Post type 'recipes' in this guide.



Preconditions

  • Have at least Administrator role in the Hub
  • Have the 'CPT UI' plugin enabled in your Hub


How-to guide

1. Go to Purple Hub, scroll down in the left-hand side menu bar to 'CPT UI' and click on it.

Document image


2. Click on 'Add/Edit Post types'.

Document image


3. Next to 'Post Type Slug' enter the desired slug for your new post type (which will occur in the URL as well) in lower case letters, e.g. recipes.

Document image


4. Next to 'Plural Label' enter the plural of the term naming your new post type e.g. Recipes (starting with a capital letter).

Document image


5. Next to 'Singular label', enter the Singular of the term naming your new post type e.g. Recipe (starting with a capital letter).

Document image


6. Next to 'Auto-populate labels', 'click on 'Populate additional labels based on chosen labels'.

Document image


7. Scroll down to 'Supports' and click in the checkbox next to 'Excerpts' to enable excerpts for your new post type.

Document image


8. Scroll down to the bottom of the page and click on 'Add Post Type'.

Document image


9. You can find your newly created post type in the left-hand side menu, below 'Pages'.

Document image


You have now successfully created a new Custom Post type, which you can access from the left-hand side menu bar.