Skip to main content

Add/Edit Post Types

Register custom post types from the Divi Machine React settings hub under Tools → Post Types. Machine stores each definition and registers the public post type from those settings.

Open Post Types

  1. Go to Divi Engine → Divi Machine.
  2. Open Tools → Post Types.

Post Types list in the Divi Machine settings hub

List view

The list shows your Machine-managed post types:

ColumnMeaning
NameDisplay title
SlugPost type key / rewrite slug
StatusPublished (active) or Draft
ActionsEdit or Delete permanently

Click Add New to create a post type, or Edit on a row to change one.

warning

Do not use WordPress reserved terms for post type slugs or names.

Add or edit a post type

  1. Click Add New, or Edit on an existing row.
  2. Enter a Post type name (for example Projects). On blur when creating, Machine autofills the slug and labels from the name.
  3. Adjust Slug if needed (alphanumeric and Latin characters; use underscores instead of spaces).
  4. Set Status to Draft or Publish.
  5. Configure the General, Labels, and Visibility & Advanced tabs.
  6. Click Create Post Type or Update Post Type, then use Back to list when finished.

Post type editor with General, Labels, and Visibility tabs

Publish registers the post type for use on the site. Draft keeps the definition without activating it as a live public post type.

Settings reference

Top fields

SettingNotes
Post type nameUnique display name; drives autofill when creating
SlugPost type key; keep unique and avoid reserved terms
StatusDraft or Publish

General

SettingNotes
DescriptionOptional short summary of the post type
Menu iconDashicon name (for example from the Dashicons library)
Menu positionSidebar order; lower numbers appear higher
Archive modeEnabled (default slug), Enabled (custom archive slug), or Disabled
Custom archive slugUsed when archive mode is custom
Custom post slugOptional single-post URL slug; leave blank for the default
TaxonomiesToggle built-in category and tag for this post type
Supportstitle, editor, thumbnail, custom-fields, page-attributes, excerpt

Labels

Specify admin and UI labels for the post type:

SettingExample use
Singular labelProduct, Event
Plural labelProducts, Events
Menu nameAdmin menu item
Admin bar nameAdmin bar when editing
All itemsList table “All items”
Add new item / Add new / New itemCreate flows
Edit item / Update itemEdit flows
View item / View itemsView links
Search itemSearch box label

Visibility & Advanced

SettingNotes
PublicShow the post type in the admin UI
Publicly queryableAllow single and archive endpoints
Show in admin sidebarAdmin menu entry
Show in admin barAdmin bar presence
Show in nav menusAvailable in Appearance → Menus
Enable Gutenberg / RESTBlock editor and REST API support
Prettify post permalinkPrefer post-type/category/single style URLs; does not work with hierarchical categories
Exclude from searchKeep posts of this type out of search results
HierarchicalAllow parent/child posts (like pages)
Enable rewriteUse WordPress rewrites for this type
Rewrite with frontPrepend the permalink front base (for example /blog/)

Delete a post type

On the list, click Delete permanently and confirm. This removes the Machine definition and cannot be undone.

What's Next