All Generators
CPT Generator
Elementor Plugin Generator
Elementor Widget Generator
Sidebar Generator
REST API Generator
Admin Notice Generator
Dashboard Widget Generator
oEmbed Provider Generator
Woocommerce Checkout Validator
Woocommerce Checkout Fields Remover
All Generators
Browse by type
Frontend
Backend
Plugins
All Generators
WordPress Tutorials
Share:
Sign in
Sign up
Custom Post Type Generator
Generate CPT code for your WordPress website
Required
Labels
Supports
Visibility
Permalinks
Capabilities
Rest
Key name (lowercase, 20 chars max) e.g. 'albums'
For example: 'Albums'
For example: 'Album'
Translation string (
Text domain
);
Menu name
Admin bar name
Archives
Attributes
Parent item
All items
Add new item
Add new
New item
Edit item
Update item
View item
View items
Search item
Not found
Not found in trash
Featured image
Set featured image
Remove featured image
Use as featured image
Insert into item
Uploaded to this item
Items list
Items list navigation
Filter item list
Title
Editor
Excerpt
Author
Featured Image
Comments
Revisions
Trackbacks
Custom Fields
Page Attributes
Post Formats
No
Yes
Hide from search
No
Yes
Make CPT exportable
No
Yes
Enable CPT archives
No
Yes
Show CPT in Dashboard
Sidebar Icon (
Dashicons
)
No
Yes
Show in Admin Bar
No
Yes
Show in Navigation Menus
Yes (like posts)
No (like pages)
Hierarchical
Yes
No
Publicly Queryable
No
Yes
Show CPT in Dashboard Sidebar
Below Posts
Below Links
Below Pages
Below Comments
Below Separator
Below Plugins
Below Users
Below Tools
Below Settings
Below Bottom Separator
Hide from search
Default Permalink (post type key)
No URL Rewrite
Custom Permalinks
Base capabilities
Custom
Set
user capabilities
Pages
Posts
Capability types
Yes
No
Add CPT to REST API routes
AUTO GENERATED CODE
Please fill in required fields
How to use this code?
Copy auto generated code ↑ (without beginning and ending PHP tags
<?php
and
?>
)
Paste code to bottom of your theme functions.php file
Save and you are done!